Author: Juwar | Posted on: 9/19/2008 4:17:33 PM | Views : 319

 Does anyone know how to check the role of a user after they logged in using the login control
I use the the loggedin method, but do not know how to check the role
 Protected Sub Login1_LoggedIn(ByVal sender As Object, ByVal e As System.EventArgs) Handles Login1.LoggedIn

        If User.IsInRole("role1") = True Then
            Response.Redirect("page1.aspx")
        Else
            If User.IsInRole("role2") = True Then
                Response.Redirect("page2.aspx")
            End If
        End If
      & ...

Go to the complete details ...