SyntaxFix
Write A Post
Hire A Developer
Questions
Use Uri class and use Host property
Uri url = new Uri(@"http://support.domain.com/default.aspx?id=12345"); Console.WriteLine(url.Host);