On a development cycle, you might need to create several custom Application Pages, which will be stored in Layouts\FolderName\YourPage.aspx.
While creating the page the base class need to inherit is "LayoutsPageBase"
Here is a blog specified about the steps for creating the pages.
Now, the challenge is, when you create such Application page for Anonymous Access, the user asked for a log in. Means the Anonymous user redirected to the login page.
To avoid such scenario, there is another base class need to inherit "UnsecuredLayoutsPageBase"
The code of the page will look like this:
Somu
While creating the page the base class need to inherit is "LayoutsPageBase"
Here is a blog specified about the steps for creating the pages.
Now, the challenge is, when you create such Application page for Anonymous Access, the user asked for a log in. Means the Anonymous user redirected to the login page.
To avoid such scenario, there is another base class need to inherit "UnsecuredLayoutsPageBase"
The code of the page will look like this:
protected partial class CustomPage : UnsecuredLayoutsPageBaseOn the same page, following method also need to be added for smooth functioning:
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
protected override bool AllowAnonymousAccessCheers!!
{
get
{
return true;
}
}
Somu
1 comment:
Developers must be experienced and experts in their field to fulfill the client with appropriate custom database integration. Application need back-up to run them properly. Developers' support enables them to run the app properly and take care of any issues instantly. This will have a great effect on client who doesn't have suffer from inappropriate app performing.
Custom Application Development
Post a Comment