asp.net client/browser url
Posted
by Marcus King
on Stack Overflow
See other posts from Stack Overflow
or by Marcus King
Published on 2008-12-23T01:21:09Z
Indexed on
2010/05/16
16:00 UTC
Read the original article
Hit count: 453
I'm wondering how I can get the url from the browser in asp.net. I have a page that I use globalization/localization for and I am redirecting (via server not code) from www.spanishversion.com to www.englishversion.com but the url is masked to still say www.spanishversion.com. I want to get what the browser's url is but when I try things like
Request.Url.ToString()
Request.Url.OriginalUrl
Request.Path Request.RawUrl
Request.ServerVariables["SERVER_NAME"]
it always comes back as www.englishversion.com. Is there a way that I can explicitly read the url from the browser?
Thanks.
© Stack Overflow or respective owner