T
tma
How do I set the user roles in my login for asp.net? I have set my
authorizations in web.config but cannot seem to find where I set the user
roles in code. The below does not work:
Dim MyIdentity As New GenericIdentity("MyIdentity")
Dim MyStringArray As String() = {"Administrator"}
Dim MyPrincipal As New GenericPrincipal(MyIdentity, MyStringArray)
Thread.CurrentPrincipal = MyPrincipal
authorizations in web.config but cannot seem to find where I set the user
roles in code. The below does not work:
Dim MyIdentity As New GenericIdentity("MyIdentity")
Dim MyStringArray As String() = {"Administrator"}
Dim MyPrincipal As New GenericPrincipal(MyIdentity, MyStringArray)
Thread.CurrentPrincipal = MyPrincipal