AJAX Calendar extender select month and year
Is it real and how can I think about it.
To make so the user will select only the month and year, not date, because he need a period on full month, not some date.
here is simple control ...
<asp:TextBox ID="TextBox3" runat="server" />
<asp:CalendarExtender ID="TextBox3_CalendarExtender" runat="server"
开发者_Python百科 Enabled="True" TargetControlID="TextBox3" />
but Calendar selects the day ... I need select the month.
how ?
There is a 'Format' property in the control. You can try setting it as [MMMM, yyyy]
<ajaxToolkit:Calendar runat="server"
TargetControlID="Date1"
CssClass="ClassName"
**Format="MMMM d, yyyy"**
PopupButtonID="Image1" />
The existing calendar extender in the AjaxControlToolkit does not select the month. Maybe the JQuery date picker, but I don't know that it necessarily does.
You could have them select a day, and derive the month/year... I know that's a bit of a hack, but haven't seen too much dealing with month year, except for providing two drop downs and having them select it.
精彩评论