Click here to Skip to main content
15,881,172 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to show and pic only month and year (jan-16) like this only using ajax calander extender . and my code is


<asp:TextBox ID="txtSalaryfortheMonth1" Width="90%" runat="server"></asp:TextBox>
                   <asp:RequiredFieldValidator ID="reqgetdetails" ValidationGroup="Valgrpgetdetails" ControlToValidate="txtSalaryfortheMonth1" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator>
                   <ajax:CalendarExtender ID="txtSalaryfortheMonth_CalendarExtender" Format="MMM-yy" DefaultView="Months" PopupButtonID="txtSalaryfortheMonth1"
                       TargetControlID="txtSalaryfortheMonth1"  runat="server">
                   </ajax:CalendarExtender>


but it will show month and year but when click on month for selection the it will show date and and when i will click on any date then again it will show month and year in target textbox(jan-16) format .

i want to show and select only month and year nothing elase will show or required to select .

is it possible with ajax calander extender to show and select month and year in jan-16 etc format ?.

please help me .

What I have tried:

<asp:TextBox ID="txtSalaryfortheMonth1" Width="90%" runat="server">
<asp:RequiredFieldValidator ID="reqgetdetails" ValidationGroup="Valgrpgetdetails" ControlToValidate="txtSalaryfortheMonth1" runat="server" ErrorMessage="*">
<ajax:CalendarExtender ID="txtSalaryfortheMonth_CalendarExtender" Format="MMM-yy" DefaultView="Months" PopupButtonID="txtSalaryfortheMonth1"
TargetControlID="txtSalaryfortheMonth1" runat="server">
Posted
Updated 8-Mar-16 0:22am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900