Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

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
Posted
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.
  • 2 weeks later...
Posted

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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...