This seems like a really easy one but everything I try doesn’t seem to work
say I have the following string:
string myString = "http://www.mysite.com/folder/file.jpg";
How can I process that to remove the URL and just leave “file.jpg” as the string value?
Thanks!
Kris
You can always use
System.IO.PathmethodsIf you do want to process more complex URIs you can pass it thought the
System.Uritype and grab the AbsolutePath