string goodUrl = Page.Request.Url.ToString();
int startCount = 7;
/* this is to rip-off http:// unless you are using https:// in which case 7 needs to be 8 */
int index = goodUrl.IndexOf("/",startCount,goodUrl.Length-(startCount+1));
goodUrl = goodUrl.Substring(0,index);
more
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment