W
Webmills
Hi
I have a form containing a
File Upload Control,
Required Field Validator (connected to the file upload control)
RegularExpressionValidator (connected to the file upload control,
validating the file types for upload)
OK button, calling an event
All four belong to the same validation group.
My problem is this...
When I submit the form, all validation works as expected and required.
However, I would like to check for the existance of the file within the
OK event and report back to the user if the file exists, cancelling the
upload.
When this happens, validation seems a bit off. The page is refreshed,
the file upload control emptied (I assume automatically for security
reasons) and RegularExpressionValidator is fired and reports false,
even though the file upload field is blank! The RequiredFieldValidator
does not fire.
Any thoughts would be gratefully received!
I have a form containing a
File Upload Control,
Required Field Validator (connected to the file upload control)
RegularExpressionValidator (connected to the file upload control,
validating the file types for upload)
OK button, calling an event
All four belong to the same validation group.
My problem is this...
When I submit the form, all validation works as expected and required.
However, I would like to check for the existance of the file within the
OK event and report back to the user if the file exists, cancelling the
upload.
When this happens, validation seems a bit off. The page is refreshed,
the file upload control emptied (I assume automatically for security
reasons) and RegularExpressionValidator is fired and reports false,
even though the file upload field is blank! The RequiredFieldValidator
does not fire.
Any thoughts would be gratefully received!