0
내가 가이 코드ASP 양식 인증
Public Sub mainlogin_Authenticate(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.AuthenticateEventArgs) Handles mainlogin.Authenticate
If Membership.ValidateUser(mainlogin.UserName, mainlogin.Password) Then
Dim usrInfo As MembershipUser = Membership.GetUser(mainlogin.UserName)
Session("UsrName") = usrInfo.UserName
If User.IsInRole("Deans") Then
Session("UsrRole") = "Deans"
ElseIf User.IsInRole("Rector") Then
Session("UsrRole") = "Rector"
End If
하지만를 사용하는 사용자 역할에 따라 권한을 부여하기 위해 노력하고있어 asp.net 웹 관리 도구 및 에 정의 된 사용자로 로그인 페이지를 구축했습니다 일은 내가 그것은 당신의 Web.config에서
안녕 아담, 당신이 http://stackoverflow.com/questions/16302505/asp-net-authentication 지원할 수 있습니다 –