日期时间选择器不起作用

编程入门 行业动态 更新时间:2024-10-12 01:32:42
本文介绍了日期时间选择器不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

你好 我想在我的网站中实现日期时间选择器. 它运行成功,但是没有显示我在网站上选择的日期. 代码如下:

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.

更多推荐

日期时间选择器不起作用

本文发布于:2023-11-27 15:39:44,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1638598.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:不起作用   日期   时间   选择器

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!