How can I get .net's validation to look like html5's validation?http://forums.asp.net/t/1797330.aspx/1?How+can+I+get+net+s+validation+to+look+like+html5+s+validation+Thu, 26 Apr 2012 14:53:38 -040017973304953056http://forums.asp.net/p/1797330/4953056.aspx/1?How+can+I+get+net+s+validation+to+look+like+html5+s+validation+How can I get .net's validation to look like html5's validation? <p>I'm writing a new website in html5.&nbsp; 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.&nbsp; Some try to do a decent validation, and some only look for the '@' symbol.&nbsp; I'd want client side validation regardless, so I'd have to see if the browser supports html5 validation and turn .net client side validation on or off accordingly (or do I?&nbsp; Can both be on?).&nbsp; It seems like a lot of work and it doesn't gain me much.&nbsp; Except I do like the styling capabilities that I get with html5's validation.</p> <p>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.&nbsp; Does anyone know how I could get these capabilities with .net validation?&nbsp; Especially the callout error message?</p> <p>If anyone has any arguements for or against using html5 validation when it's available, I'm willing to listen.&nbsp; I like the idea of using the new input types (email, tel, etc,) for accessability reasons, but I can still use them without html5 validation.</p> 2012-04-26T13:53:14-04:004953099http://forums.asp.net/p/1797330/4953099.aspx/1?Re+How+can+I+get+net+s+validation+to+look+like+html5+s+validation+Re: How can I get .net's validation to look like html5's validation? <p></p> <blockquote><span class="icon-blockquote"></span> <h4>Mainship</h4> I'm writing a new website in html5.&nbsp; 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.&nbsp; Some try to do a decent validation, and some only look for the '@' symbol.&nbsp; I'd want client side validation regardless, so I'd have to see if the browser supports html5 validation </blockquote> <p></p> <p>unfortunately, HTML5 implmentation is not standardised in all browsers yet. html5 validations are new and it varies how each browsers implement them...</p> <p>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</p> <p></p> <blockquote><span class="icon-blockquote"></span> <h4>Mainship</h4> 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.&nbsp;</blockquote> <p></p> <p>the callout like validation display is also not consistant across all html5 supported browsers</p> <p></p> <blockquote><span class="icon-blockquote"></span> <h4>Mainship</h4> Does anyone know how I could get these capabilities with .net validation?&nbsp; Especially the callout error message?</blockquote> <p></p> <p>HTML5 validation is only supported in newer browsers... you will still have to use cusomt validation for the users on old browsers</p> <p>till the time html5 standard becomes more stable, you should use validation callout extender of ajax toolkit... like shown here</p> <p><a href="http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/ValidatorCallout/ValidatorCallout.aspx">http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/ValidatorCallout/ValidatorCallout.aspx</a></p> <p>or search of jquery based validator... they provide consistant behaviour, look across all major browsers</p> <p>hope this helps...</p> 2012-04-26T14:16:43-04:004953183http://forums.asp.net/p/1797330/4953183.aspx/1?Re+How+can+I+get+net+s+validation+to+look+like+html5+s+validation+Re: How can I get .net's validation to look like html5's validation? <p>You've just confirmed the conclusion I came to.&nbsp; I'll continue to use .net validation.&nbsp;</p> <p>Thank you for the ajax link.&nbsp; I should have thought to look into Ajax or Jquery, but didn't.&nbsp; I'll go look at them now!</p> 2012-04-26T14:53:38-04:00