Solved

setting the title of a calendar control

Posted on 2008-10-07
4
224 Views
Last Modified: 2010-08-05
hi i have a number of calendar controls on my page:
<td>
                                <asp:Calendar ID="october08Availability" ShowNextPrevMonth="false" runat="server"></asp:Calendar>
                            </td>
                            <td>
                                <asp:Calendar ID="november08Availability"  ShowNextPrevMonth="false" runat="server"></asp:Calendar>
                            </td>
                            <td>
                                <asp:Calendar ID="december08Availability" ShowNextPrevMonth="false" runat="server"></asp:Calendar>
                            </td>

however all the titles say october, i cant seem to find the property to allow me to change these?
0
Comment
Question by:scm0sml
4 Comments
 
LVL 19

Assisted Solution

by:elimesika
elimesika earned 150 total points
ID: 22663706
HI

Use the SelectedDate property

More on calendar usage at
http://www.codeproject.com/KB/aspnet/aspnet-yahoouicalendar.aspx
0
 
LVL 26

Accepted Solution

by:
Anurag Thakur earned 350 total points
ID: 22666045
just setting teh selecteddate property will not help

By default, the Calendar control displays a calendar for the current month. However, you can display a calendar for any month, simply by setting the Calendar control's TodaysDate and SelectedDate properties to a custom DateTime value.
0
 
LVL 14

Expert Comment

by:raja_ind82
ID: 22667111
october08Availability.TitleFormat =TitleFormat.MonthYear ' TitleFormat.Month
Custom text is not allowed.

Regards,
M.Raja
0
 

Author Comment

by:scm0sml
ID: 22671142
yeah i just did:
october08Availability.TodaysDate = "01/10/2008"            
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

910 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

16 Experts available now in Live!

Get 1:1 Help Now