dotnetnuke

Lost session/cookie when login as another user

試著忘記壹切 提交于 2020-01-04 02:55:08
问题 I am building dnn module which allow logged in user to log in as another user. But I have some wired issue here. This is how I log out current user and login as another user: UserInfo userInfo = UserController.GetUserById(portalId, userId); if (userInfo != null) { DataCache.ClearUserCache(this.PortalSettings.PortalId, Context.User.Identity.Name); if (Session["super_userId"] == null) { Session["super_userId"] = this.UserId; Session["super_username"] = this.UserInfo.Username; } HttpCookie

DotnetNuke Module Integration

一个人想着一个人 提交于 2020-01-03 20:00:55
问题 I have created a DNN module for a Poll. This module is created as a Project within my DNN project solution . I would like to integrate this module into the DNN website.Is there any chance of doing this? I already change the users controls to inherit PortalModuleBase withing my Poll project. I went through this tutorial http://www.adefwebserver.com/DotNetNukeHELP/DNN4_SurveyModule/Default.htm but i realise it s not the same case since this one shows you how to create the module in the DNN site

How to set the skin of a DotNetNuke page through code?

a 夏天 提交于 2020-01-03 02:01:07
问题 I'm working on a DNN module that creates DNN pages (tabs) and places DNN modules on them through code. So, far that's working very well. However, I'd like it to also be able to programmatically set the page's skin and place the modules in the appropriate pane. Does anyone know how to do this using code? Solution: I set SkinSrc and ContainerSrc as mika suggested. Here's my source, if you're interested. This is where I set SkinSrc . ''' <summary>Create new DNN tab/page.</summary> Private

Difference between DotNetNuke.Services.Mail.Mail.SendEmail and DotNetNuke.Services.Mail.Mail.SendMail

为君一笑 提交于 2020-01-02 02:41:12
问题 I want to send an email after a registration process in a DNN module. When i searched i found that there is an in-built mail class in dnn. But it contains two methods - SendEmail and SendMail . What is the difference between these two?And which one i have to opt in this case. 回答1: SendEmail was introduced in DNN 5.3, and greatly simplifies the API. If you're able to use the SendEmail method, I would recommend it, it's much simpler than SendMail (which always requires SMTP information, even

Migrate an existing DotNetNuke portal to windows azure

风流意气都作罢 提交于 2020-01-01 12:11:11
问题 I am currently moving from my shared host to azure and I have been migrating my asp.net applications to azure/sql azure. For the mvc3/4 sites, I had to change their membership providers to the Universal Membership provider in order to get them to sit on SQL Azure. Now I have to do the dnn sites and I can't quite fathom what strategy to use. I have tried generating the database script with the For SQL Azure option but I get a tonne of errors like Deprecated feature 'String literals as column

DNN Containers

有些话、适合烂在心里 提交于 2020-01-01 09:35:08
问题 This might be a general question, but I can't seem to figure it out. What are containers in DNN? Skins are essentially a layout plus a colour scheme for the whole portal. So are containers the skin for desktopmodules? Sorry if this question is novice. I am not confident in DNN yet, and am reading the doco. However i need this answer quite quickly. Cheers. 回答1: Containers allow you to add style and markup to any module independently of the page skin or the particular module. The layout goes

Retrieve FileID from DotNetNuke using FileName

不羁岁月 提交于 2019-12-31 06:27:06
问题 I'm trying to get the FileID of a file based on the FileName. This is what I have, but it returns false. Any ideas? Dim oFileInfo As New DotNetNuke.Services.FileSystem.FileInfo oFileInfo.FileName = "4secapplication.PNG" Dim FileID As Integer Dim oFolderInfo As New DotNetNuke.Services.FileSystem.FolderInfo oFolderInfo.FolderPath = "uploads/files/" If FileManager.Instance.FileExists(oFolderInfo, "4secapplication.PNG") = True Then FileID = oFileInfo.FileId Else lblExceptions.Text = "not exists"

Copy DNN HTML Pro module in content to another module

蓝咒 提交于 2019-12-25 08:49:38
问题 Below code is working fine for HTML module but not working for HTML PRO module. HtmlTextController htmlTextController = new HtmlTextController(); WorkflowStateController workflowStateController = new WorkflowStateController(); int workflowId = htmlTextController.GetWorkflow(ModuleId, TabId, PortalId).Value; List<HtmlTextInfo> htmlContents = htmlTextController.GetAllHtmlText(ModuleModId); htmlContents = htmlContents.OrderBy(c => c.Version).ToList(); foreach (var content in htmlContents) {

What should install to work with customization of DotnetNuke?

梦想与她 提交于 2019-12-25 04:28:04
问题 I am new in DotnetNuke. I don't know which tool use for customize modules and other things in DotnetNuke. Can Visual Studio(2013 or later version) use for it? or any specific tool use for it? If possible, please suggest me link of download. Thank you. 回答1: Yes, Visual Studio would be the tool of choice for most DNN Developers I would recommend that you read the following links: This is a module template provided by Chris Hammond https://github.com/ChrisHammond/DNNTemplates This is an in-depth

Dotnetnuke Site settings PageLoadException: Object reference not set to an instance of an object

倾然丶 夕夏残阳落幕 提交于 2019-12-25 04:27:25
问题 I cant reach site setting. I just get this error messages: PageLoadException: Object reference not set to an instance of an object and a: System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out i really confuse about this error and has search for a fix, but found no solution for it. is there anyone who knows how to solve it? Or have any idea how to? here is the stacktrace from the database: DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to