Monday, July 18, 2011

Anonymous access to SharePoint application page

When create an application page and view it anonymous, the authentication will pop up.

By default, the application inherits from LayoutsPageBase. To make the anonymous access work, we need to inherits from UnsecuredLayoutsPageBase.



For more information, please refer to:




Beside changing the inherit class, we also need to override the AllowAnonymousAccess property like below:


        protected override bool AllowAnonymousAccess

        {

            get

            {

                return true;

            }

        }

No comments:

Post a Comment