Posted on: 3/30/2011 9:55:27 AM | Views : 1102

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        txtUserName.Text = User.Identity.Name
        txtUserLevel.Text = Roles.GetRolesForUser(txtUserName.Text)
    End Sub

 
Well, that didn't work.  Turns out the "Roles.GetRolesForUser(txtUserName.Text)" returns a string.
All I'm after is the user level, or Role, that the logged in user is.  Seems pretty straight forward but I can't see it or find it.
Any ideas?
 
Cheers,
Dave
...

Go to the complete details ...