AJAX 日历扩展器选择月份和年份
这是真的吗?我该如何思考它。
为此,用户将仅选择月份和年份,而不是日期,因为他需要完整月份的期间,而不是某个日期。
这是简单的控制...
<asp:TextBox ID="TextBox3" runat="server" />
<asp:CalendarExtender ID="TextBox3_CalendarExtender" runat="server"
Enabled="True" TargetControlID="TextBox3" />
但是日历选择日期...我需要选择月份。
如何 ?
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.
how ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
控件中有一个“格式”属性。您可以尝试将其设置为[MMMM, yyyy]
There is a 'Format' property in the control. You can try setting it as [MMMM, yyyy]
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.