asp.net client/browser url
- by Marcus King
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.