Need help with rangevalidator

Discussion in 'ASP' started by jdruwe, Dec 4, 2010.

  1. jdruwe

    jdruwe New Member

    Joined:
    Dec 4, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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
     
  2. bzforum

    bzforum New Member

    Joined:
    May 20, 2012
    Messages:
    25
    Likes Received:
    7
    Trophy Points:
    0
    Occupation:
    CEO & Founder
    Location:
    Mumbai , India
    Home Page:
    http://bzforum.in/index.php
    I know its too late..but im sure this may help someone else who would be searching for this solution...

    PHP:
            RangeValidator1.MinimumValue DateTime.Now.ToShortDateString();
            
    RangeValidator1.MaximumValue DateTime.Now.AddYears(1).ToShortDateString();
     
    shabbir likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice