J
John A Grandy
ASP.NET 2.0 IIS 5.5.
In code-behind , how to determine the host name of the site ?
In code-behind , how to determine the host name of the site ?
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 ?
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 ?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.