![]() |
validate Date input using Custom Validator
how to use Custom Validator to valid the date input, such as Feb does not have 30th or April does not have 31st....
I don't want to use Calender control... |
Re: validate Date input using Custom Validator
If you don't "have" to use the custom validator, then why not use a compare
validator? Set the Operator property of the validator to "DataTypeCheck", and the Type property to "Date". It's pretty smart too, I just tested it out and it validated (even on client side), leap years, and everything you mentioned in your post. --Michael |
Quote:
using visual studio 2005 |
Change the Operator Property
The operator property for the compare validator must be set to "DataTypeCheck"
Check MSDN for detail msdn.microsoft.com/en-us/library/ad548tzy.aspx |
hiii i tried ur way bt i wish to validate only one field of date and if i use compare validator dn what shall i enter in controltovalidate and controltocompare.
|
| All times are GMT. The time now is 09:07 PM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.