Hi..
i have a web application that uses the aspnet membership and i have created two roles one for admins and the other is for users...my question is how to configure the application when a user with the role of users to access only certain page??? and deny the access for all the other pages????
help please !!!!
Loading

Morcos AdelPosted Jun 21, 2011, 7:39 AM
i have added the following lines to my code and it worked but i still can't manage where to put them to be functioning correctly:
i added them to the master page in the page_load event and it didn't work....any ideas??????
Code:
if
{
Response.redirect("~/Users.aspx");
}
(Roles.IsUserInRole("Users") == true)