SRIKAR'S
Wednesday, June 20, 2012
File Upload control Accepting only .docx files
if (FileUpload1.HasFile)
{
string filename = FileUpload1.PostedFile.FileName;
string fileExtension = Path.GetExtension(FileUpload1.PostedFile.FileName);
if (fileExtension == ".docx")
{
Response.Write("xxxx");
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment