deselect calendar control

  • Thread starter Thread starter Logan McKinley
  • Start date Start date
L

Logan McKinley

I don't want to allow users to select future dates on my calendar controls
(System.Web.UI.WebControls.Calendar), right now i can throw the error
message but i can't figure out how to remove their selection.
Any help would be greatly appriciated,
~Logan
 
This seems to work... sorta

Cldr.SelectedDate = new DateTime(1,1,1);
It sets Cldr.SelectedValues.Count == 0 which worked for what i needed

~L
 
It's possible to do next too:

Cldr.SelectedDates.Remove(Cldr.SelectedDate)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top