Solved

asp.net 4.0 calendar get selected dates

Posted on 2010-09-20
3
466 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
Comment Utility
try

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

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

Author Closing Comment

by:bergertime
Comment Utility
Wow,that was fast.
0
 
LVL 2

Author Comment

by:bergertime
Comment Utility
Oh, and thanks!
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

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…
Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now