<BR> <BR>William Moore - 15 Apr - 12:27:40 PM<BR>--------------------------------------------------------------------------------<BR> <BR>This code dos not seem to be working when using windows authentication the if statment always evals to false <BR>I have included both the code and the web.config <BR><BR><BR>__________________________________________________ __<BR><BR>Test.aspx file<BR>--------------<BR><html><BR><BR><script language="C#" runat=server><BR><BR>void Page_Load(Object Src, EventArgs E ) {<BR><BR>if(User.IsInRole("manager")) {<BR><BR>AuthUser.Text = User.Identity.Name;<BR>AuthType.Text = User.Identity.AuthenticationType;<BR><BR>}<BR><BR>else {<BR>AuthUser.Text = "Access Denied";<BR>AuthType.Text = "Access Denied";<BR>}<BR><BR><BR>}<BR><BR></script><BR><BR><body><BR><BR><h3><font face="Verdana">Using Windows Authentication</font></h3><BR><BR><table Width="700" rules="all" bordercolor="Black" style="background-color:#ccccff;bordercolor:black;font-family:Verdana;font-size:8pt;border-collapse:collapse;"><BR><tr><BR><td>User:</td><BR><td><asp:label id=AuthUser runat=server/><BR></tr><BR><tr><BR><td>Authentication Type:</td><BR><td><asp:label id=AuthType runat=server/><BR></tr><BR></table><BR><BR></body><BR><BR></html><BR>__________________________________________________ ___<BR><BR>web.config file<BR>----------------<BR><configuration><BR><system.web><BR><authentication mode="Windows" /><BR><BR><globalization requestEncoding="UTF-8" /><BR><BR></system.web><BR></configuration><BR> <BR>