本文介绍了日期时间选择器不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好 我想在我的网站中实现日期时间选择器. 它运行成功,但是没有显示我在网站上选择的日期. 代码如下:
Hello I want to implement date time picker in my web site. It runs sucessfully but it doesnt show date which I select in my website. The code is as given below:
<ASP:TextBox runat="server" ID="txtDate">; <asp:Calendar ID="Textbox" runat="server" ShowTimeSelector="true" DateFormat="MM/dd/yyyy hh:mm:ss" DatePickerMode="true" TextBox="txtDate"> <asp:Calendar>请引导我.
Please guide me.
推荐答案看看以下这些内容以取得进展: 使用日历控件创建ASP.Net DatePicker [ ^ ] 创建弹出日期选择器 [ ^ ] 尽管是旧版本,但也请阅读这篇文章: DateTimePicker Web控件 [ ^ ] 如果仍然遇到问题,请发布您尝试访问/检查日历中所选值的代码.可能是在某个页面上的提交事件中,您必须尝试访问它.只需调试一下,看看在到达事件之前,它是否在任何地方都已重置. Have a look at these to move ahead: Creating ASP.Net DatePicker using Calendar Control[^] Creating a Popup Date Picker[^] Though an old one, have a look at this article too: DateTimePicker Web Control[^] If you still face issue, post your code of how you are trying to access/check the value selected in the calendar. Probably on some page submit event you must be trying to access it. Just DEBUG and see if it''s getting reset anywhere before reaching to the event.
更多推荐
日期时间选择器不起作用
发布评论