Removing first part of url?

Srilu.Nayini577
Posted by Srilu.Nayini577 under Others category on | Points: 40 | Views : 1075
Syntax:

string path="some url";

string varname=path.Substring(path.IndexOf(@"\") + 1);


Example:

string path=file:\D:\xlsprojects\Payrollsystem\Payrollsystem\bin\Debug;

string a = path.Substring(path.IndexOf (@"\") + 1);

Comments or Responses

Login to post response