如何在ASP.net中获取datetimepicker [英] How to get datetimepicker in ASP.net
本文介绍了如何在ASP.net中获取datetimepicker的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的项目中我想显示并选择日期在ASP.net中没有datetimepicker工具如何在ASP.net中获取它。请任何人都可以帮助我
谢谢
解决方案
< html lang = zh_ >
< head >
< meta charset = utf-8 >
< title > jQuery UI Datepicker - 默认功能< / title >
< link rel = stylesheet href = http://jqueryui.com/themes/base/jquery.ui.all.css >
< script src = < span class =code-keyword> http://jqueryui.com/jquery-1.6.2.js > < / script >
< script src = http ://jqueryui.com/ui/jquery.ui.core.js > < / script >
< ; script src < span class =code-keyword> = http://jqueryui.com/ui/jquery.ui.widget.js > < / script >
< script < span class =code-attribute> src = http://jqueryui.com/ui/jquery.ui.datepicker.js > < / script >
< link rel = 样式表 href = http://jqueryui.com/demos /demos.css\">
< < span class =code-leadattribute> script >
(function(){
(#datepicker)。datepicker();
});
< / script >
< / head >
< body > ;
< div class = demo >
< p > 日期:< input type = 跨度> text id = datepicker > < / p >
< span class =code-keyword>< / div > <! - 结束演示 - >
< div class = 演示说明 >
< 跨度> <跨度class =code-leadattribute> p > datepicker绑定到标准表单输入字段。专注于输入(单击或使用Tab键)以小叠加打开交互式日历。选择日期,单击页面上的其他位置(模糊输入),或按Esc键关闭。如果选择了日期,则反馈显示为输入值。< / p >
< / div > <! - 结束演示说明 - >
< / body >
< / html >
In my project i want to display and select date In ASP.net there are no datetimepicker tool how to get it in ASP.net .Please anyone can help me
Thank you
解决方案
<html lang="en"> <head> <meta charset="utf-8"> <title>jQuery UI Datepicker - Default functionality</title> <link rel="stylesheet" href="http://jqueryui.com/themes/base/jquery.ui.all.css"> <script src="http://jqueryui.com/jquery-1.6.2.js"></script> <script src="http://jqueryui.com/ui/jquery.ui.core.js"></script> <script src="http://jqueryui.com/ui/jquery.ui.widget.js"></script> <script src="http://jqueryui.com/ui/jquery.ui.datepicker.js"></script> <link rel="stylesheet" href="http://jqueryui.com/demos/demos.css"> <script>
(function() {
( "#datepicker" ).datepicker(); }); </script> </head> <body> <div class="demo"> <p>Date: <input type="text" id="datepicker"></p> </div><!-- End demo --> <div class="demo-description"> <p>The datepicker is tied to a standard form input field. Focus on the input (click, or use the tab key) to open an interactive calendar in a small overlay. Choose a date, click elsewhere on the page (blur the input), or hit the Esc key to close. If a date is chosen, feedback is shown as the input's value.</p> </div><!-- End demo-description --> </body> </html>
这篇关于如何在ASP.net中获取datetimepicker的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文