File Upload Regular Expression Validator Error Message Shows After Upload
Posted on 2006-07-19
Hello. I have a regular expression validator for my file upload control that only allows jpgs and gifs:
The problem is that after I upload the file, the validator error message is displayed.
I also noticed that when I add the following for the Upload Button Event:
If Page.IsValid Then
I am never able to upload a file even if I am uploading a valid file (.jpg, .gif, etc). However, when I don't add the page.isvalid part, everything works (except that the error message is displayed after I upload).
I'm really scratching my head on this, so help will really be appreciated.