J John A Grandy Jun 21, 2006 #1 ASP.NET 2.0 IIS 5.5. In code-behind , how to determine the host name of the site ?
K Ken Cox [Microsoft MVP] Jun 21, 2006 #2 Hi Jhn, Try this? Response.Write(Request.ServerVariables("Server_Name")) Ken Microsoft MVP [ASP.NET]
J Juan T. Llibre Jun 21, 2006 #3 Request.ServerVariables("HTTP_HOST") Juan T. Llibre, asp.net MVP aspnetfaq.com : http://www.aspnetfaq.com/ asp.net faq : http://asp.net.do/faq/ foros de asp.net, en español : http://asp.net.do/foros/ ===================================
Request.ServerVariables("HTTP_HOST") Juan T. Llibre, asp.net MVP aspnetfaq.com : http://www.aspnetfaq.com/ asp.net faq : http://asp.net.do/faq/ foros de asp.net, en español : http://asp.net.do/foros/ ===================================
J John A Grandy Jun 22, 2006 #4 Is this the same thing ? Request.Url.Host Ken Cox said: Hi Jhn, Try this? Response.Write(Request.ServerVariables("Server_Name")) Ken Microsoft MVP [ASP.NET] John A Grandy said: ASP.NET 2.0 IIS 5.5. In code-behind , how to determine the host name of the site ? Click to expand... Click to expand...
Is this the same thing ? Request.Url.Host Ken Cox said: Hi Jhn, Try this? Response.Write(Request.ServerVariables("Server_Name")) Ken Microsoft MVP [ASP.NET] John A Grandy said: ASP.NET 2.0 IIS 5.5. In code-behind , how to determine the host name of the site ? Click to expand... Click to expand...
K Ken Cox [Microsoft MVP] Jun 23, 2006 #5 Hi John, Yes, they're the same thing for the name of the server. Ken Microsoft MVP [ASP.NET] John A Grandy said: Is this the same thing ? Request.Url.Host Ken Cox said: Hi Jhn, Try this? Response.Write(Request.ServerVariables("Server_Name")) Ken Microsoft MVP [ASP.NET] John A Grandy said: ASP.NET 2.0 IIS 5.5. In code-behind , how to determine the host name of the site ? Click to expand... Click to expand... Click to expand...
Hi John, Yes, they're the same thing for the name of the server. Ken Microsoft MVP [ASP.NET] John A Grandy said: Is this the same thing ? Request.Url.Host Ken Cox said: Hi Jhn, Try this? Response.Write(Request.ServerVariables("Server_Name")) Ken Microsoft MVP [ASP.NET] John A Grandy said: ASP.NET 2.0 IIS 5.5. In code-behind , how to determine the host name of the site ? Click to expand... Click to expand... Click to expand...