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

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

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

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


Asked In: Some Interviews | Alert Moderator 

Comments or Responses

Login to post response