Go4Expert (http://www.go4expert.com/)
-   ASP (http://www.go4expert.com/forums/asp/)
-   -   Need help with rangevalidator (http://www.go4expert.com/forums/help-rangevalidator-t24091/)

jdruwe 4Dec2010 15:39

Need help with rangevalidator
Hey i am using a rangevalidator in my program but i have a problem with the maximumvalue option of a rangevalidator. The minimum must be the day of today thats easy to
program but te maximumvalue has to be 1 year later the today. i dont know how i can program this .

Thanks in advance

bzforum 28May2012 22:20

Re: Need help with rangevalidator
I know its too late..but im sure this may help someone else who would be searching for this solution...

PHP Code:

        RangeValidator1.MinimumValue DateTime.Now.ToShortDateString();
RangeValidator1.MaximumValue DateTime.Now.AddYears(1).ToShortDateString(); 

All times are GMT +5.5. The time now is 19:09.