Determining the domain name used

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
 
B

bruce barker

look at either:

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

-- bruce (sqlwork.com)
 

Ask a Question

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.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,608
Members
45,249
Latest member
KattieCort

Latest Threads

Top