Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 241
  • Last Modified:

setting the title of a calendar control

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
scm0sml
Asked:
scm0sml
2 Solutions
 
elimesikaCommented:
HI

Use the SelectedDate property

More on calendar usage at
http://www.codeproject.com/KB/aspnet/aspnet-yahoouicalendar.aspx
0
 
Anurag ThakurTechnical ManagerCommented:
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
 
raja_ind82Commented:
october08Availability.TitleFormat =TitleFormat.MonthYear ' TitleFormat.Month
Custom text is not allowed.

Regards,
M.Raja
0
 
scm0smlAuthor Commented:
yeah i just did:
october08Availability.TodaysDate = "01/10/2008"            
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now