Solved

asp.net 4.0 calendar get selected dates

Posted on 2010-09-20
3
473 Views
Last Modified: 2012-06-27
I have a calendar control, selection mode is set to DayWeek.  So I select a week and I have two labels that I want to put the beginning date and ending date into so

label1.text = calendar1.selected. date gets the first day (Sunday)
label2.text = calendar1.???????  << I need this to be the last day (Saturday)

Thanks
0
Comment
Question by:bergertime
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 35

Accepted Solution

by:
YZlat earned 500 total points
ID: 33716816
try

 Label1.Text += Calendar1.SelectedDates[0];

        Label2.Text += Calendar1.SelectedDates[6];
0
 
LVL 2

Author Closing Comment

by:bergertime
ID: 33716873
Wow,that was fast.
0
 
LVL 2

Author Comment

by:bergertime
ID: 33716879
Oh, and thanks!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question