a) what does isDOB represent
b) what do you want to validate
Thanks for ur reply.
here is the detail.
Actually this Date control wil have two types of behavior, and it will depend on this Public property IsDOB(is date of birth
) return type Boolean. if this is true, the date Dropdown(DD) will start from 1895 up to the current year -10.and as default year 1960 would be selected.it does not care about month DD and Day DD.
on the other hand if its false. Three dds will show the current date.while the year will start from 2002 up to current year.so this is the signaificance about IsDob.
Then r 2 other public properties.
public property GetDate() as string : return the date in the format mm/dd/yyyy.
one method:
SetDate(string) :set the date accordong to the input string.
Validation
----------
let say some one selects the sept month in month DD and day 31 in day dd. This should be validated first on the client side and then server side incase javascript fails(javascript is off).
other example would be leap year.some one select feb in leap year and 29 or more then 28 days in days DD.
So this kind of scinarios has to be validated.
i dont want to use a seperate custom validator for my control.
the validator cvontrol should be part of the date custom control itself.
if u still have any Qs please dont hasitate to ask me .
thanks
Ab