Solved

asp.net 4.0 calendar get selected dates

Posted on 2010-09-20
3
472 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
  • 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

786 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