2010-07-26 4 views

답변

2

당신이 제안처럼 당신이 그것을 할 수 있습니다 방법은 System.Security.Principal 네임 스페이스에 있음을

if (User.IsInRole("Nurse")) 
    //Redirect 

.

또한 Web.config의에서 작업을 수행 할 수 있습니다

<configuration> 
    <location path="doctorDiscussionBoard.aspx"> 
    <system.web> 
     <authorization> 
     <deny roles="Nurses" /> 
     <allow roles="Doctors" /> 
     <deny users="*" /> 
     </authorization> 
    </system.web> 
    </location> 
.... 
+0

귀하의 편집 그것에 나를 이길 ... – cjk

관련 문제