4
Reply

How can we give authentication to some pages in ASP.Net application in form authentication

prakash Rout

prakash Rout

May 18, 2007
5.1k
0

    keep the pages you want to give a in separate folder and place the following web.config file in that folder:

    <configuration>
    <system.web>
    <authentication mode="forms" />
    <authorization>
    <allow users="?" /> 
    </authorization>
    </system.web>
    </configuration> 
    
    The above web.config allows all anonymous users to access any .aspx page in that folder.

    Dinesh
    May 21, 2007
    0

    keep the pages you want to give a in separate folder and place the following web.config file in that folder: < configuration > < system.web > < authentication mode="forms" / > < authorization > < allow users="?" / > < /authorization > < /system.web > </configuration > The above web.config allows all anonymous users to access any .aspx page in that folder.

    Dinesh
    May 21, 2007
    0

    keep the pages you want to give a in separate folder and place the following web.config file in that folder:

             
    The above web.config allows all anonymous users to access any .aspx page in that folder.

    Dinesh
    May 21, 2007
    0

    keep the pages you want to give a in separate folder and place the following web.config file in that folder: The above web.config allows all anonymous users to access any .aspx page in that folder.

    Dinesh
    May 21, 2007
    0