Determine the URL of the request

  • Thread starter Thread starter Douglas Macnguyen
  • Start date Start date
D

Douglas Macnguyen

Hi all,

I want to have multiple domain names pointing to a same IP address (i.e. a
same Start.aspx page) and redirect each domain to its own web site. Using
C#, how can I get the actual name of the URL?

TIA,
Douglas
 
Hello Doug,

Assign Request.Url.AbsoluteUri to string.
You can play around with Resquest.URL.

Yama
 
Thanks for Yama's informative suggestions.

Hi Doug,

Since you are wanting the get the full requested URL from the client, I
think Yama's suggestion that use the
"Request.Uri" member is quite good. You may have a try to see whether it
helps. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
 
Back
Top