Author: norchnou | Posted on: 2/4/2009 12:04:40 AM | Views : 427

Hi All,

 I should apologize for posting something like that but I've lost already too much time on it.

I have a web app with 3 roles 1 of them is Admin

Here is my loggingIn Event code:
//url shortcuts
string adminURL = "~/Admin/";
string FillerURL = "~/Filler/";
string CheckerURL = "~/Checker/";
//finding textbox
TextBox Username = (TextBox)Login1.FindControl("Username");
// Sorting Users based on roles
if (Roles.IsUserInRole(Username.Text, "Admin"))
{ Response.Redirect(adminURL); }

Go to the complete details ...