Posted on: 4/30/2011 12:40:58 PM | Views : 327

I am not using membership concept for role based security instead I am using my own DB to handle users and roles.
I did code as followed
 
 
protected void bLogin_Click(object sender, EventArgs e) { obj = new ServiceReference1.Service1Client(); employeeObj = obj.AuthenticateEmployee(tEmail.Text, tLoginPassword.Text); if (employeeObj != null) //login is success from business login { AssigningRole(employeeObj); if(employeeObj.EmployeeRole!=null) { if(User.IsInRole("administrator")) { Response.Redirect("~/WebAdmin/default.aspx"); } } Response.Redirect("~/WebUser/default.aspx"); } else { // Login Unsuccessfull Message } }  
 
...

Go to the complete details ...