Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Apr 26, 2012 02:16 PM|LINK
I'm writing a new website in html5. I was intrigued by it's validation capabilities and decided to use them, but I started running into some problems. I'm finding that browsers aren't consistent when validating inputs of type email for example. Some try to
do a decent validation, and some only look for the '@' symbol. I'd want client side validation regardless, so I'd have to see if the browser supports html5 validation
unfortunately, HTML5 implmentation is not standardised in all browsers yet. html5 validations are new and it varies how each browsers implement them...
morover, email validation is not implemeneted in all browser.. (not in IE9) and the look and feel of validation message is different in each browser
I like the callout type of error message that html5 has, and I like being able to color the border and background of the textbox depending on if the data entered is valid or not.
the callout like validation display is also not consistant across all html5 supported browsers
Does anyone know how I could get these capabilities with .net validation? Especially the callout error message?
HTML5 validation is only supported in newer browsers... you will still have to use cusomt validation for the users on old browsers
till the time html5 standard becomes more stable, you should use validation callout extender of ajax toolkit... like shown here
or search of jquery based validator... they provide consistant behaviour, look across all major browsers
hope this helps...