Determining the domain name used

  • Thread starter Thread starter Jonny
  • Start date Start date
J

Jonny

Hi I have a couple of domains names which point to the same ASPX page. I
would like to determine which domain name the user accessed the page from eg
www.abc.com or www.bcd.com etc. Is there an easy way to do this in ASPX C#?

Many thanks

Jonny
 
look at either:

Request.ServerVariables["SERVER_NAME "]
Request.ServerVariables["HTTP_HOST"]

-- bruce (sqlwork.com)
 
Back
Top