Tuesday, September 18, 2012

Get Extension of Uploaded file in asp.net

Custom Search

string strFileName = Path.GetFileName(fUpload1.PostedFile.FileName);
//above line we will get the uploaded filename
string strExtn = Path.GetExtension(fUpload1.PostedFile.FileName);
//above line we will get the extension of uploaded file

No comments:

Post a Comment

Comments

Search

Custom Search
Protected by Copyscape Plagiarism Software