AJAX日历扩展器选择月和年 [英] 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"
Enabled="True" TargetControlID="TextBox3" />
但日历选择日期...我需要选择月份。
but Calendar selects the day ... I need select the month.
如何?
推荐答案
AjaxControlToolkit中现有的日历扩展器不选择月份。也许是JQuery的日期选择器,但我不知道它一定会。
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.
这篇关于AJAX日历扩展器选择月和年的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!