2015-01-02 4 views
0

응답을 피할 수 있으면 .write는 대체 무엇입니까?Response.Write가 플래그에 표시되지 않습니다.

누군가이 응답 메시지가 표시되지 않는 이유를 설명해 주실 수 있습니까? 최근까지까지 사용되었습니다.

DirectorySearcher objADSearcher = new DirectorySearcher(de); 
de.AuthenticationType = AuthenticationTypes.Secure; 

objADSearcher.SearchRoot = de; 
objADSearcher.Filter = "(SAMAccountName=" + item + ")"; 
SearchResult results = objADSearcher.FindOne(); 
if (results.ToString() != "") 
{ 
    int flags = Convert.ToInt32(results.Properties["userAccountControl"][0].ToString()); 
    //for reference results.Properties["userAccountControl"][0].ToString().Equals("514"); 

    if (Convert.ToBoolean(flags & 0x0002)) 
    { 
     Response.Write("<script> alert ('" + "Account Disabled for more then 90 days, please call helpdesk at 1 xx.xx.xxx to activate your account" + "') </script>"); 
    } 
+0

코드입니다. 디버깅하고 단계별로 진행한다면,'if' 문이 성공적으로 성공하고'Response.Write' 행을 얻게됩니까? 브라우저에서 소스보기를 실행하면 페이지에 '

관련 문제