Hi
I'm going through the painful transition from vb to c#, have pity
I have fileupload control which has following property containing filename complete with directories:
FileUpload1.PostedFile.FileName
I want to use just the filename and get rid of directories from the string
I thought I'd knock something up to strip everything off before the last "\" but I'm hopeless without my vb string and conversion functions, I'm pulling me hair out.
How do you do it in c# pls?
I'm going through the painful transition from vb to c#, have pity
I have fileupload control which has following property containing filename complete with directories:
FileUpload1.PostedFile.FileName
I want to use just the filename and get rid of directories from the string
I thought I'd knock something up to strip everything off before the last "\" but I'm hopeless without my vb string and conversion functions, I'm pulling me hair out.
How do you do it in c# pls?