DISQUS

Mike Stokes's picture

Unregistered

Feeds

aliases

  • Mike Stokes

Mike Stokes

4 months ago

in Client & Server Side Validation in ASP.NET MVC on Emad Ibrahim
Emad - I think this stuff is looking promising. You have made the correct choice of inserting the JavaScript rules (as opposed to using classes to decorate the fields for two reasons I think:-

CSS classes should be used for styling and grouping similar elements e.g. you could be using the class attribute already to style certain form elements or maybe using it to group specific elements which can then be manipulated with CSS or JavaScript jQuery etc. If you had used the class method for tagging the elements, you would have limited peoples use of them for other important reasons - so good choice :)

We've rolled out a similar system (also based on Steve Sanderson's excellent work) and it's working well and is proving to be robust and extensible.

Keep up the great work and looking forward to reading your book :)

Mike
1 reply
eibrahim Thanks and glad to get some 3rd-party validation (no pun intended) for my design.
Returning? Login