How to Find Lastindex String

Jayakumars
Posted by Jayakumars under ASP.NET AJAX category on | Points: 40 | Views : 2342
string strft = "ctl00_ContentPlaceHolder1_PanelCityShow";
int dt1 = strft.LastIndexOf("_")+1;
string Totstring = strft.Substring(dt1, strft.Length-dt1);

Comments or Responses

Login to post response