I have added a file upload to my asp.net website. However, I want to limit the file types that user can select. For example, I only the user to select mp3 files. How can I a
Using RegularExpressionValidator may help you. No serverside code is necessary for the checking of the file extension. Check out this code
Remember all you have to do is now add a fileupload control with the id FileUpload1. Done. You can press F5 and see the effect