I moved this blog to other domain: https://tech.panshin.me , please update your bookmarks

Wednesday, May 1, 2013

Anonymous Access SharePoint Application Page

Generally when creating a page in SharePoint it inheritance from LayoutsPageBase however a public page has to inheritance from UnsecuredLayoutsPageBaseand overriding AllowAnonymousAccess property.

public partial class ForgotPassword: UnsecuredLayoutsPageBase
{
    protected override boolAllowAnonymousAccess { get{ return true; } }
 
    protected void Page_Load(objectsender, EventArgs e)
    {
    }
}

No comments: