?
Solved

setting the title of a calendar control

Posted on 2008-10-07
4
Medium Priority
?
231 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 600 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 1400 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

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