I have an existing large application that uses validators.
I have a problem with the client side validators not working on
netscape (and any browser other than IE). As you may already know, the
reason is that the validators use document.all which is regognized
only by IE's javascript (as opposed to document.getElementById() which
is regognized by all browsers.)
I do not want to use validators other than dotnet's (it's the standard
of my company)
When netscape calls my pages, the user can enter invalid data and
press submit and the code will execute. When the page comes back,
there are stars the in place of the validators that would fire if IE
was used!
I do not want to use page.isvalid for each UI event , because there
are way too many pages and events in my application. The only thing I
would accept would be to stop execution at page_load if not
page.isvalid. But then again, I do not know how to do that!
My questions are :
1) How can we enable validation for other browsers? I assume client
side validation is not possible, so we may have to resort to server
side validation for all browsers different than IE. So eventually the
question may be: how do we tune asp.net to do client side validations
for IE and server side validations for other browsers.
2) Is asp.net 2.0 going to support client side validation for all
browsers? If the answer is yes, then I will simply switch to client
side validation when I get asp.net 2.0