public static string getlogonId()
{
string ADAccount = string.Empty;
if (HttpContext.Current.Request.ServerVariables["LOGON_USER"] != null) //
{
ADAccount = HttpContext.Current.Request.ServerVariables["LOGON_USER"].ToString().TrimEnd(' ');
int str = ADAccount.IndexOf("\\");
ADAccount = ADAccount.Remove(0, (str + 1));
}
return ADAccount;
}