如何使用jQuery datepicker与标准ASP.NET控件集成?
- 内容介绍
- 文章标签
- 相关推荐
本文共计256个文字,预计阅读时间需要2分钟。
使用jQuery和ASP.NET将日期显示在单击图像的文本框中,以下是一个简化的示例:
日期选择示例
这个示例中,当用户点击图像时,会弹出一个日期选择器,用户可以选择日期,所选日期将显示在文本框中。请确保将`calendar.png`替换为实际的日历图像路径。
如何使用 jquery和ASP.NET将日期显示在单击图像按钮的文本框中? 这是一个很好的例子,可以帮助您使用它.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
如果要显示按钮
通过这个linke
How I can use JQuery Datepicker with a Icon and a Format in ASP.NET
这建议你使用喜欢
$(".txtVon").datepicker({ showOn: "button", buttonImage: "images/calendar.gif", buttonImageOnly: true });
本文共计256个文字,预计阅读时间需要2分钟。
使用jQuery和ASP.NET将日期显示在单击图像的文本框中,以下是一个简化的示例:
日期选择示例
这个示例中,当用户点击图像时,会弹出一个日期选择器,用户可以选择日期,所选日期将显示在文本框中。请确保将`calendar.png`替换为实际的日历图像路径。
如何使用 jquery和ASP.NET将日期显示在单击图像按钮的文本框中? 这是一个很好的例子,可以帮助您使用它.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
如果要显示按钮
通过这个linke
How I can use JQuery Datepicker with a Icon and a Format in ASP.NET
这建议你使用喜欢
$(".txtVon").datepicker({ showOn: "button", buttonImage: "images/calendar.gif", buttonImageOnly: true });

