My computer is in a Domain (Active Directory) and I need to get the domain name dynamically. I found the following code on the internet:
SelectQuery query =
protected void Page_Init(object sender, EventArgs e) { String hostdet = Request.ServerVariables["HTTP_HOST"].ToString(); }