hi, I want to generate tool for server side validations. So that for all the controls after designing the form with set of controls, I can use the tool for all types of validations. This will reduce coding and development faster. Can anybody send me how to handle this?
Thanks.
RakrusPosted Feb 7, 2008, 6:29 AM
Hi,
1.For each control in the design time set the value of "title" attribute to the Datatype handled by that control.
2.Implemt the validation logic in form submit.
Validation Logic
Scan all the form control and read the title attribute,by this you will get the data type and check the value of that control is of given datatype or not.
if suceeded then ok other wise note it as a error message with that control reference
and repeat this process for all the controls.
For each control error message is mainatined as a single text with breaks and display it.
Thanks