How can you get the extension from a File upload control ?

 Posted by Akiii on 3/3/2014 | Category: ASP.NET Interview questions | Views: 2012 | Points: 40

var extension = System.IO.Path.GetExtension(FileUpload1.FileName);

Here, FileUpload1 is the name of the File upload control.

Asked In: Some Interviews | Alert Moderator 

Comments or Responses

Login to post response