Solved

setting the title of a calendar control

Posted on 2008-10-07
4
230 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
[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
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

705 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