Getting Website address
-
How can I get the URL of a webiste. I believe I can use Request.URL , but this would return: http://www.MySite.com/index.aspx However, I just want to get http://www.MySite.com or just: www.MySite.com thanks
-
How can I get the URL of a webiste. I believe I can use Request.URL , but this would return: http://www.MySite.com/index.aspx However, I just want to get http://www.MySite.com or just: www.MySite.com thanks
-
How can I get the URL of a webiste. I believe I can use Request.URL , but this would return: http://www.MySite.com/index.aspx However, I just want to get http://www.MySite.com or just: www.MySite.com thanks
-
Hi I have following code:
Uri uri = new Uri("http://www.examples.co.uk/index.aspx"); websiteAddress = uri.Host;
uri.Host would return "www.examples.co.uk". But how can I get: "examples.co.uk" thanks