Monday, March 26, 2012

Atlas Validators

Hi,

I am trying to replace the regular validators with atlas validators. When I put regular validators into an updatepanel which EnableClientScript is true it always throws error. Any sample or code snippet will be really helpful.

The atlas validators only exist in the client-side library at this moment. To use them, write client-side Atlas script code yourself. I don't think you can simply implement an Extender control, since I believe they render to tags while validators should be added to the validators property of an Atlas control instead.

To associate a required field validator, you can write some code like:


<control id="someHTMLInputElement">
<validators>
<requiredfieldvalidator .. />
</validators>
</control>

Thanks Wilco for your reply. I am an real admirer of your work. But how can I prevent a from to get posted if any of the validators failed?

No comments:

Post a Comment