Monday, August 4, 2008

https:// in which case 7 needs to be 8 */

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

No comments: