Mega Code Archive

 
Categories / ASP.Net Tutorial / Authentication Authorization
 

Getting all the roles of a specific user

Protected Sub Button1_Click(ByVal sender  As Object, ByVal e  As System.EventArgs)    GridView1.DataSource = Roles.GetRolesForUser("userName")    GridView1.DataBind() End Sub