For any type of the web application, we will have some
type of authentication for that application. For example if we develop the
application for intranet we have to enable windows authentication in IIS. But
sometimes we may require to disable authentication for some pages like help
page. In this article we discuss about how to disable authentication for
specific page while other content still have authentication.
Open Microsoft Visual Studio 2013 => Create simple
Asp.Net Web application with Default.aspx & help.aspx pages.
Right click on the Solution => Select Publish option and provide publish options, click Publish as shown below.
Now create Website for this SimpleWebApplication in
IIS as shown below.
Enable Forms Authentication for this website. Go to Authentication
& enable Forms Authentication as shown below.
Let’s disable this Forms Authentication for the
Help.aspx page. Right click on application in IIS and select “Switch to Content”
View as shown below.
Right click on Help.aspx page => select “Switch to
Features View” as shown below.
Now select Authentication option and disable Forms
Authentication & enable Anonymous Authentication as shown below.
So as explained above now Help.aspx page not requires Forms Authentication. In this way we can disable Authentication for multiple pages also.