validator client side and navigators ?

  • Thread starter Thread starter Christophe
  • Start date Start date
C

Christophe

is it normal that my required and range validator work on then client side
only with IE 6 (maybe IE5) and not opera 7, netscape 4.7x, netscape 7 ?
in the generated pages, validation.js is inserted in the code only with IE

why? it's only javascript stuff... the other navigator should be abble to
take it in account , shouldn't they?

Christophe
 
Christophe,

Yes, the javascript used in the validators is somtimes not compatible with
other browsers.

The solution is to always validate server side.

If Page.IsValid Then

End If

It's always nice to validate client side when possible, but with so many
browsers to support you can't always trust the client side validation will
work.

Sincerely,

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
 
oooops...there goes the " server side controls in asp.net return the correct
html based on the browser which made the request" advantage out the window.
Hmmmmm
 
Back
Top