Jessica Cao Sincerely, Microsoft Online Community Support “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
I am using a File Upload control and a Regular Expression Validator to check to make sure the file is a .jpg, .bmp, or extension.
Everything works great, the upload is fine, but the error message posts Jessica Cao Sincerely, Microsoft Online Community Support “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
You should be warned, however, that client-side validation works only with Microsoft Internet Explorer version 4.0 and higher. If you request a page that contains a validation control, and you are using Microsoft Internet Explorer version 4.0 or higher, Java Script code is automatically sent to your browser.
In particular, the client-side scripts discussed in this chapter do not work with any version of Netscape Navigator. If, for whatever reason, you want to disable client-side form validation, you can do so by adding the following directive at the top of your page: This directive disables client-side form validation.
Fortunately, the Validation controls discussed in this chapter do not force you to make this difficult choice.
The Validation controls automatically generate both client-side and server-side code.The Validation controls make use of a Java Script script library that is automatically installed on your server when you install the . Unfortunately, however, it also prevents all the ASP.NET controls on the page from rendering any non-HTML 3.2 compatible content.I am assuming that would require a Validation Group? All I had to do was pull everything out of the Validation Groups and it worked great! Each validation group can perform validation independently from other validation groups on the page.The only question I have left is why the weird behavior? You create a validation group by setting the Validation Group property to the same name (a string) for all the controls you want to group.The advantage of writing validation logic in client-side code is that you can provide instant feedback to your users.