1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

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:
    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