Umbraco: Get a Host name

http://example.com/query/

@Request.ServerVariables["HTTP_HOST"] -> example.com

@Request.Url.ToString() -> http://example.com/query/

No comments:

Post a Comment