SyntaxFix
Write A Post
Hire A Developer
Questions
the Request.ServerVariables object works for me. I don't know of any reason not to use it.
Request.ServerVariables
ServerVariables["SERVER_NAME"] and ServerVariables["HTTP_URL"] should get what you're looking for
ServerVariables["SERVER_NAME"]
ServerVariables["HTTP_URL"]