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 !!!!
Role manager problem
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Morcos Adel115 reputationPosted Jun 21, 2011, 3:39 AM EDT
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)