<location path="Admin.aspx"> <system.web> <authorization> <allow users="Shiv"/> <deny users="*"/> </authorization> </system.web> </location> <location path="User.aspx"> <system.web> <authorization> <allow users="Shiv"/> <allow users="Raju"/> <deny users="*"/> </authorization> </system.web> </location>
Friday, 31 January 2014
We also need to define which user have access to which page. In this project we have created two pages “Admin.aspx” and “User.aspx”. “Admin.aspx” is accessible to only user “Shiv” while “Admin.aspx” and “User.aspx” is accessible to both the users.
We also need to define which user have access to which page. In this project we have created two pages “Admin.aspx” and “User.aspx”. “Admin.aspx” is accessible to only user “Shiv” while “Admin.aspx” and “User.aspx” is accessible to both the users.
<location path="Admin.aspx"> <system.web> <authorization> <allow users="Shiv"/> <deny users="*"/> </authorization> </system.web> </location> <location path="User.aspx"> <system.web> <authorization> <allow users="Shiv"/> <allow users="Raju"/> <deny users="*"/> </authorization> </system.web> </location>
Subscribe to:
Posts (Atom)