HI,
Good Morning!!
http://www.hellohyderabad.com/hyderabad-guide/localities/abids/
I have url like this, in this i need to pick the last string means locality(abids) and i have to append that last string to my database query, so pls help to me ,
how to pick and append that string to my database query.
Thank you.
How to pick the part of string from URL
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Javeed M ShaikhRank #839 · 2.7K reputationPosted Aug 24, 2012, 11:53 AM EDT
string[] myarray = url.split(@'/')
string laststring = marray[marray.length-1].ToString();