如何使用 jquery和ASP.NET将日期显示在单击图像按钮的文本框中? 这是一个很好的例子,可以帮助您使用它.

http://www.codeproject.com/Articles/47474/ASP-NET-Control-from-jQuery-DatePicker-in-3-Minute

编辑1

你应该看看jQuery UI DatePicker.

ASP.NET示例

<script>
$(function() {
    $( "#<%= txtDate.ClientID %>" ).datepicker();
});
</script>

<form id="form1" runat="server">
  <div>
    <asp:TextBox ID="txtDate" runat="server" />
  </div>
</form>

编辑2

如果要显示按钮通过这个linkeHow I can use JQuery Datepicker with a Icon and a Format in ASP.NET

这建议你使用喜欢

$(".txtVon").datepicker({
        showOn: "button",
        buttonImage: "images/calendar.gif",
        buttonImageOnly: true
        });
本站提供的所有下载资源均来自互联网,仅提供学习交流使用,版权归原作者所有。如需商业使用,请联系原作者获得授权。 如您发现有涉嫌侵权的内容,请联系我们 邮箱:[email protected]