Here I will explain how to solve the problem The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current user during personalization of webpart in application.
Description:
The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current user.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.FormatException: The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current user.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
|
In Web.config just insert
<authentication mode="forms" />
<authorization>
<allow users=”*” />
<deny users=”?” />
</authorization>
|
MembershipUser mUser = Membership.GetUser(this.UserNameTextBox.Text);
if (mUser == null)
{
mUser = Membership.CreateUser(this.UserNameTextBox.Text, “3rdp@rty”, “xyz@tdsc.com”, “no question”, “no answer”, true, out msStatus);
}
FormsAuthentication.RedirectFromLoginPage(mUser.UserName, false);
|
|
If you enjoyed this post, please support the blog below. It's FREE! Get the latest Asp.net, C#.net, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email. |
|||
Subscribe by RSS
Subscribe by Email
|
|||
|
|
|
Subscribe by RSS
Subscribe by Email
2 comments :
plz provide More Example of webparts..
great