|
ASP.NET Validation Package Demo 3 - Multiple non-ASP.NET server formsThe following demo contains three non server forms, each independently being validated. The first form collects basic user information from a subscriber and contains a series of validation rules as follows:
The second form is a login form (it doesn't actually log into anything). It contains two basic validation rules as follows:
The login form is used later to demonstrate server-side only validation. The third form is a basic search form that contains two search term fields and a condition. The validation rules for this form are a little more complex than the others. The rules follow:
Note that the code used to create this page contains no server form elements whatsoever. Consequently, all form fields that are validated must be registered with the Validator as belonging to a group. The submit button for each of the forms is linked to its associated group so that the Validator knows which fields to validate server-side. In this example, all forms and validation entries are placed on the same ASPX page. However, to maintain good design this should not be the case in a real situation. Ideally all validation and form handling should be isolated from one another and placed in individual user controls. >> Turn off client side validation!
Subscribe
Login
Search
© 2002 - 2008 Copyright, Disclaimer and Privacy Statement |
||||||