/ Published in: C#

Segments is a zero based array that starts with the first segment.
Expand |
Embed | Plain Text
if (address.Segments[0] == "Admin") //do something... string path = HttpContext.Current.Request.Url.AbsolutePath; // /TESTERS/Default6.aspx string host = HttpContext.Current.Request.Url.Host; // localhost
You need to login to post a comment.