L
Lauchlan M
Hi
I'm doing a file upload and I get
//get the filename
string FullFileNameAndPath = fileDischargeFile.PostedFile.FileName;
This returns the full filepath, eg c:\folder\filename.ext
What I want to do is get the filename (as 'filename.ext') and the extension
(as '.ext') from this full path.
What are the best .net methods/namespaces to use for this?
Thanks
Lauchlan M
I'm doing a file upload and I get
//get the filename
string FullFileNameAndPath = fileDischargeFile.PostedFile.FileName;
This returns the full filepath, eg c:\folder\filename.ext
What I want to do is get the filename (as 'filename.ext') and the extension
(as '.ext') from this full path.
What are the best .net methods/namespaces to use for this?
Thanks
Lauchlan M