SteveoAtilla Posted March 23, 2005 Posted March 23, 2005 Hello! I have a page that uses the same calendar control to set multiple dates. I do this by setting a Session variable to determine which date is being set. The problem is, after the control is used once and set to invisible, the next button is clicked, the control is re-displayed, but the first date is selected, or I can re-set it to today, but I can't TURN IT OFF. Any ideas? I've tried calPickDate.SelectedDate = 0 but that gives an error. Help! Thanks, Kahuna Quote The three most important things in life: God, your family, and the Green Bay Packers -- Not necessarily in that order. Winning is not a sometime thing. You don't win once in a while, you don't do things right once in a while, you do them right all the time. Winning is a habit. Unfortunately, so is losing. -- Vincent T. Lombardi
kahlua001 Posted March 23, 2005 Posted March 23, 2005 not sure what you are asking, when you selected a date, you hide it, click the next button, show the calendar, but want to reset the calednar so that no dates are selected? if that is the case, when you first display the calendar without any selected dates, response.write the calendar's selccted date, it will be '1/1/0000' or something. when you reset the calendar, try setting the selectedate to that. Quote
SteveoAtilla Posted April 1, 2005 Author Posted April 1, 2005 That's the ticket! ... if that is the case' date=' when you first display the calendar without any selected dates, response.write the calendar's selccted date, it will be '1/1/0000' or something. when you reset the calendar, try setting the selectedate to that.[/quote'] Kahlua, That was it exactly. I didn't know if there was a way to turn off any selection, but setting it to 1/1/0001 does the same thing. Thanks! Kahuna Quote The three most important things in life: God, your family, and the Green Bay Packers -- Not necessarily in that order. Winning is not a sometime thing. You don't win once in a while, you don't do things right once in a while, you do them right all the time. Winning is a habit. Unfortunately, so is losing. -- Vincent T. Lombardi
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.