asp.netvb.netcalendarextender

show only month and year in ajax toolkit calendar extender


please help.. how to modify calendar extender display in ajax calendar extender to show only month and year, i mean the calendar view NOT the textbox text format, so i only select month name in specific year.


Solution

  • In dealing with an inherited page with a stubborn script manager, getting the runaround about my javascript function being undefined, I finally ended up simply setting the html attribute for "DefaultView" to "Months" on the CalendarExtender like so:

    <asp:CalendarExtender ID="dtPickerFrom" runat="server" CssClass="calendarClass" Enabled="true" Format="MMM-yy" PopupButtonID="imgcalendarFileDate" TargetControlID="TextBoxFileDate" DefaultView="Months">
    </asp:CalendarExtender>
    

    Here's the associated property with its options:

    enter image description here

    Result:

    enter image description here