Sponsored By
Advertise with Us
Advertisement
Advertise with Us
Follow Us
Article
Forum
Blog
Quiz
Beginner
Careers
Contact
Login
Email Id
Password
Remember Me
Forgot Password?
Sign Up
Home
|
Product
|
Services
|
About Us
|
Interview
|
DeveloperSection
|
Submit an Article
|
Submit Blog
Report Abuse Form
Reason:
Home
>>
.Net
>>
ASP.Net
>>
How to check uploaded file type using ASP.NET
Author
Post
John Smith
Total Post:
52
Member Since:
9/27/2010
Points:
339
How to check uploaded file type using ASP.NET
Posted On:
1/1/2011 3:24:06 AM
Report Abuse
Hello Everyone...
I have web application where user can upload only .doc file on the server...
Please provide me sample code which can put validation to check filetype ..
Thx
Reply
Author
Post
Haider M Rizvi
Total Post:
40
Member Since:
6/6/2010
Points:
291
Re: How to check uploaded file type using ASP.NET
Posted On:
1/2/2011 2:02:39 AM
Report Abuse
Hi,
You can do it by using ReguralExpressionValidator control.
Check this link for your solution:
http://www.mindstick.com/Articles/7d72a758-52bc-4242-922f-6b3914895d92/?Validating%20FileUpload%20control%20for%20specific%20file%20type%20and%20required%20field.
Reply
Report Abuse Form
Reason:
Total Online Users:
2675
Advertisement
Advertise with Us
Copyright ©
2013
MindStick. All Rights Reserved.
Home
|
Contact Us
|
Services
|
Feedback
|
Advertisement
|
Privacy Policy
|
Term & Conditions
|
About Us