Hi, I am using file upload control in .net. But I want , the user only able to upload doc, docx and pdf file.How do I make it possible?
bshyama24@gmail -2 Newbie Poster
Recommended Answers
Jump to PostHi, I am using file upload control in .net. But I want , the user only able to upload doc, docx and pdf file.How do I make it possible?
string strExtension = Path.GetExtension(this.FileUpload1.FileName) if (strExtension != ".doc" && strExtension != ".docx") { // prompt your warning message …
All 4 Replies
Ramesh S 129 Posting Pro
bshyama24@gmail -2 Newbie Poster
Ramesh S 129 Posting Pro
dnanetwork 18 Practically a Master Poster Banned
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.