Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I haw got the ASP Calendar. I want to choose range from date to date. If i choose "SelectionChanged" i could only set one date. I think meybe I could set a second date which is end of Date Rannge when I double cliced on Calendar, but how could I do it. Please help me.

Solution:

I done this, by OnSelected Event, and this code:

if (TextBox5.Text == "") { this.TextBox5.Text = this.Calendar1.SelectedDate.ToShortDateString().ToString(); this.TextBox6.Text = this.Calendar1.SelectedDate.ToShortDateString().ToString(); }

share|improve this question
    
I done this, by OnSelected Event, and this code: ` if (TextBox5.Text == "") { this.TextBox5.Text = this.Calendar1.SelectedDate.ToShortDateString().ToString(); this.TextBox6.Text = this.Calendar1.SelectedDate.ToShortDateString().ToString(); }` –  Grzegorz Z Jan 22 '13 at 13:36
    
You can add this code to your question by editing it. –  Mike Jan 22 '13 at 15:37
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.