如何在ASP.NET C#中使用ajaxified timepicker控件? [英] How to use ajaxified timepicker control in ASP.NET C#?

查看:63
本文介绍了如何在ASP.NET C#中使用ajaxified timepicker控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里在我的应用程序中我想要timepicker控件。所以我使用了Ajaxified TimePicker,它在我的电脑上正常工作但是在发布不工作的客户端pc后。它只显示timepicker的图像。



请帮帮我。



我的尝试:



Here in my application i want timepicker control .So that i have used Ajaxified TimePicker,which working properly on my PC but after publishing not working client pc.It shows only images of timepicker.

Please help me.

What I have tried:

<%@ Register TagPrefix="Ajaxified" Assembly="Ajaxified" Namespace="Ajaxified" %>



< br $>





<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
   </asp:ToolkitScriptManager>







<asp:TextBox ID="txtTo" runat="server" Text=""  class="autosuggest"></asp:TextBox>
                        <Ajaxified:TimePicker ID="TimePicker1" runat="server" TargetControlID="txtTo" CloseOnSelection="true" MinuteStep="15">
                        </Ajaxified:TimePicker><br />

推荐答案

可能是浏览器兼容的问题我更喜欢使用更简单的Jquery



你可以在这里找到演示 Datepicker | jQuery UI [ ^ ]



Might be a browser compatible issue I would prefer using Jquery which is much more simple

You can find the Demo here Datepicker | jQuery UI[^]

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>jQuery UI Datepicker - Restrict date range</title>
  <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
  <link rel="stylesheet" href="/resources/demos/style.css">
  <script src="https://code.jquery.com/jquery-1.12.4.js"></script>
  <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
  <script>


(function(){
( function() {


(#datepicker)。datepicker({minDate:-20, maxDate:+ 1M + 10D});
});
< / script>
< / head>
< body>

< p>日期:< input type =textid =datepicker>< / p>


< / body>
< / html>
( "#datepicker" ).datepicker({ minDate: -20, maxDate: "+1M +10D" }); } ); </script> </head> <body> <p>Date: <input type="text" id="datepicker"></p> </body> </html>


这篇关于如何在ASP.NET C#中使用ajaxified timepicker控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆