Kindly put on the code.
it will help us understand you better
string userid;
protected void Page_Load(object sender, EventArgs e)
{
userid = WindowsIdentity.GetCurrent().Name;
}
protected void LoginButton_Click(object sender, EventArgs e)
{
if (Login1.UserName.Equals(userid.ToString()))
Response.Write("welcome " + Login1.UserName.ToString());
}
}
in web.config file
<authentication mode="Windows"/>
<authorization>
<deny users="?"/>
</authorization>
<identity impersonate="true "/>
i wrote like this when i execute first time it works
actually i dont have any idea abt authentication............