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 ...