The "Request" in Request.ServerVariables is an instance of the HttpRequest
class, which encapsulates the HTTP Request sent by a client. A Request is
made for a resource, such as an ASPX page, by an individual. Therefore, you
want to get it when you are responding to a Request; that is, usually in an
instance of a Page.
--
HTH,
Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist
Sequence, Selection, Iteration.
"Oren" <Or**@discussions.microsoft.comwrote in message
news:22**********************************@microsof t.com...
Hello,
I tried to get UserName and Domain by doing:
System.Collections.Specialized.NameValueCollection var =
Request.ServerVariables;
string[] sLogonUserArr = var["LOGON_USER"].ToString().Split('\\');
It's not working at the Global.asax file in the events:
Application_Start, Application_End, Application_Error, Session_Start,
Session_End
How can I get them ?
thanx,
Oren