Solved

setting the title of a calendar control

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

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