File Upload

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When I upload an image file to the server I need to isolate the file
extension (jpg, gif, png etc etc) Is there a string I can use. I can
successfully trap the file name with the extension I can even get the file
name without the extension as follows:
string
fne=System.IO.Path.GetFileNameWithoutExtension(fileupload1.PostedFile.FileName);

but I need to get the extension. Does anyone know how?

Sam I am.
 
Thank you I figured it out. Now I have to figure out how to get the number
of rows in a child table in a DataGrid. Any suggestions?
 
Back
Top