dotnetnuke

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

与世无争的帅哥 提交于 2019-12-25 04:27:02
问题 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

No http handler was found for request type 'GET' in dotnetnuke

╄→尐↘猪︶ㄣ 提交于 2019-12-25 04:26:14
问题 Dnn data base and files of dotnetnuke moved to new host but when starting it show error: The page cannot be displayed because an internal server error has occurred. i have checked log file of dnn in \Portals\_default\Logs it shows error : 2016-10-16 19:09:25,763 [WIN-MA182KN2LA7][Thread:7][ERROR] DotNetNuke.Entities.Urls.UrlRewriterUtils - System.Web.HttpException (0x80004005): Error executing child request for ~/Default.aspx. ---> System.Web.HttpException (0x80004005): No http handler was

How can I use DotNetNuke's built-in Sessions and Cookies for my own login module?

眉间皱痕 提交于 2019-12-25 03:44:50
问题 Does anyone have an example of how to use DNN's built-in functionality for a custom Login Module which can store the User Login with a Session and Cookie? I don't want to re-invent the wheel. Thanks 回答1: Check out DotNetNuke.Entities.Users.UserController . It has all kinds of methods for user handling. For login it has void UserLogin(int portalId, UserInfo user, string portalName, string ip, bool createPersistentCookie); UserInfo UserLogin(int portalId, string username, string password,

How can i populate dropdown fom database in dnn

限于喜欢 提交于 2019-12-24 15:04:11
问题 I want to add new page in the DNN site which populates two dropdown for Country and State from the database. Please suggest how we can do this? 回答1: Here I show you how to create dynamic pages using DNN module. For more information refer this link. First of all open your DNN website in Visual Studio. You can see the DesktopModules folder in your root directory, right click on the directory and add new directory give it to name as your module name, for example "CountryState". Now right click

checking a cookie exists Login Logoff using jquery / js

試著忘記壹切 提交于 2019-12-24 11:17:51
问题 I have a DNN login/logoff control which isnt working properly. I want to therefore make my own using JS/JQUERY. When the user is logged in the HTML on the page looks like this: <a href="javascript:__doPostBack('dnn$dnnLOGIN$cmdLogin','')" class="SkinObject" id="dnn_dnnLOGIN_cmdLogin">Logout</a> and when they are 'logged out' it looks like this: <a href="javascript:__doPostBack('dnn$dnnLOGIN$cmdLogin','')" class="SkinObject" id="dnn_dnnLOGIN_cmdLogin">Login</a> I would like to check if the

How do you properly set a custom profile property in DNN?

霸气de小男生 提交于 2019-12-24 00:58:25
问题 I'm trying to save a custom property to an existing user profile in DNN 7, but the profile property is not getting set. I must be understanding something incorrectly. So, how do you properly set a custom profile property in DNN? UserInfo.Profile.SetProfileProperty("key","value") // I expect this to return "value", but it's always "" var value = UserInfo.Profile.GetProfileProperty("key"); // Even if I save it... ProfileController.UpdateUserProfile(UserInfo); // It always returns "" var

dnn:label Not a Known Element

£可爱£侵袭症+ 提交于 2019-12-23 19:17:37
问题 I'm going through some DNN tutorials and in one tutorial, for Edit.ascx the author says to add: <%@ Register TagPrefix="dnn" TagName="label" Src="~/controls/LabelControl.ascx" %> so that <dnn:label ID="lblName" runat="server" /> can be used. However, VS2013 gives a warning for dnn:label saying that " Element 'label' is not a known element. This can occur if there is a compilation error in the Web site, or the web.config file is missing. " I've tried to view other DNN source and I also get the

DNN - Allow users to edit content but not settings

╄→尐↘猪︶ㄣ 提交于 2019-12-23 15:58:58
问题 I'd like "Content Managers" of my DNN website to edit just the content of a particular HTML module instance, but not its settings. How do I achieve this? If I allow this role to "Edit" the module, they are able to access and change the module settings as well. Thanks in advance for your inputs. 回答1: This can be achieved with DotNetNuke Professional edition using the extended granular permissions. 回答2: Or by using Oliver Hine's Enhanced Permission Provider for DotNetNuke. 回答3: you can achive

Create a log file for a custom DNN module

拜拜、爱过 提交于 2019-12-23 02:18:24
问题 We have a search module on DNN and would like to create a log file which will send search terms which did not bring back any matches. The log will will then have to be emailed to the admin (Perhaps the DNN schedule manager can be used?). I see that DNN has Log4Net, but won't it be better to write a txt file and write to it? Does anyone have suggestions on how the Paths to save the file would work and if there are any existing DNN functionality I can use? 回答1: You can also use your DotNetNuke

How can I forward a url to the appropriate page?

我的梦境 提交于 2019-12-22 10:38:56
问题 How can I forward a url such as: http://www.mysite.com/Join to the appropriate page: http://www.mysite.com/JoinOptions/MemberRegistration.aspx Is there some way to do this? I'm using a DNN CMS but if you're unfamiliar with DNN and still have a solution for redirecting that would be helpful. Thanks, Matt 回答1: You can create a "friendly URL rule" within DNN. In the Host Settings page, open the Friendly URL section within the Advanced Settings section. From there you can add a new rule, that