Friday, May 9, 2008

calander extender Ajax Control

Tip 3: Enable Year Navigation in CalendarExtender
When the calendar appears, click on the title of the calendar to change the view to Months in the current year. Clicking it again, switches the view to Years, showing 10 years at a time.
If you plan to do this programmatically, here’s some code for you. Use the OnClientShown event and switch the mode using javascript. This tip was shared by one of the Microsoft® support person at the asp.net forums.


runat="server" TargetControlID="TextBox1" OnClientShown="ChangeCalendarView" />
Then add this to the section

CalendarExtender



No comments: