dimanche 1 juin 2014

split last section of a string in c#


Vote count:

0




i have a kind of input in my program witch users type a link like "http://ift.tt/RTHYiv" and i looking for a code to give me the last section of the link (sample.png)



More accurate:


user type this in a textbox : "http://ift.tt/RTHYiv"


and i receive this : string a = "sample.png"



in other hand i want know all elements after last "/" in my program. i think we can use split() or trim() but i don't know how!



asked 50 secs ago






Aucun commentaire:

Enregistrer un commentaire