Validation control help
hi,
in my asp.net webform,i am having a textbox to get date of birth from user and a submit button.
I have to validate the textbox in client-side itself.
I should use custom validator control for this validation.
The error messages shgould be displayed when i click submit button.
1.If i havent entered anything into textbox and click submit button an error message should be
displayed.
2.If date is not entered in correct format (mm/dd/yyyy),error message should be displayed.
Please give source code also...
|