dotnetnuke-5

Programmatically login in dotnetnuke

限于喜欢 提交于 2020-01-23 19:04:27
问题 hey guys, i am using dotnetnuke as my CMS, for some reason i want to manually login user into the site, i am able to login but the problem is, even if i enter the invalid password, still dotnetnuke log me in. i am using below code. UserInfo objUser = new UserInfo(); objUser.Username = Login1.UserName; UserMembership objMembership = new UserMembership(objUser); objMembership.Username = Login1.UserName; objMembership.Password = Login1.Password; objUser.Membership = objMembership; /

Programmatically login in dotnetnuke

人走茶凉 提交于 2020-01-23 19:03:05
问题 hey guys, i am using dotnetnuke as my CMS, for some reason i want to manually login user into the site, i am able to login but the problem is, even if i enter the invalid password, still dotnetnuke log me in. i am using below code. UserInfo objUser = new UserInfo(); objUser.Username = Login1.UserName; UserMembership objMembership = new UserMembership(objUser); objMembership.Username = Login1.UserName; objMembership.Password = Login1.Password; objUser.Membership = objMembership; /

CSS menu broken in Firefox (display:table-cell;)

那年仲夏 提交于 2019-12-14 03:48:32
问题 HTML: <td align="center" width="100%"> <a class="Forum_ib_moderate" href="Default.aspx" title="Moderate"></a> <a class="Forum_ib_admin" href="Default.aspx" title="Admin"></a> ... CSS: A.Forum_ib_moderate:link, A.Forum_ib_moderate:visited, A.Forum_ib_moderate:active, A.Forum_ib_moderate:hover { background-image: url(images/ib_moderate.png); background-repeat: no-repeat; background-position: center; padding-left: 2px; padding-right: 2px; padding-top: 8px; padding-bottom: 0px; height: 35px;

How to handle the “Maximum length exceeded” error nicely?

亡梦爱人 提交于 2019-12-06 12:47:49
问题 I encounter "maximum length exceeded" error when I try to upload a document which is 9MB in size. I know that the issue will be solved if httpRuntime maxRequestLength and requestLengthDiskThreshold in web.config are increased but what I am looking for is how I can nicely handle the error and show the message to the user. I did try to use Application_Error event in global ascx but the event is not fired. The reason might be from Server.Transfer from DNN PageBase class's OnError method.

How to handle the “Maximum length exceeded” error nicely?

試著忘記壹切 提交于 2019-12-04 19:03:21
I encounter "maximum length exceeded" error when I try to upload a document which is 9MB in size. I know that the issue will be solved if httpRuntime maxRequestLength and requestLengthDiskThreshold in web.config are increased but what I am looking for is how I can nicely handle the error and show the message to the user. I did try to use Application_Error event in global ascx but the event is not fired. The reason might be from Server.Transfer from DNN PageBase class's OnError method. Specifications: NET 3.5 SP1 (ASP.NET) IIS 6 DotNetNuke 5.4.4(2) It is quite urgent and your suggestion is much