Click to See Complete Forum and Search --> : string manipulation


solomon_13000
02-06-2007, 02:16 AM
How do I retrieve part of a string "Car\Sports\mama.fla"

from:

"C:\My Documents\My Pictures\Car\Sports\mama.fla"


using asp.net 2.0 with c#.


Regards.

Ribeyed
02-06-2007, 05:44 PM
to retrieve a Portion of a sting you use the String SubString method.
The Substring method requires 2 iteger parameters so you would need to work out the position of text you want to retrieve.


VB Code:

theSubString = theString.Substring(0, 4)