Author: sn1000 | Posted on: 5/20/2010 6:47:04 PM | Views : 288

I have a path which always is written http:\\localhost\ or http:\\localhost I want to parse the value that it just substrings and write the value "localhost" with no http:\\ or ending with "\" the out i am looking is for just "localhost"    public string SiteURL { get { if (_serverPath.EndsWith("/")) { _serverPath -= "/"; } return _serverPath ; } }
 
...

Go to the complete details ...