如何使用 jquery和ASP.NET将日期显示在单击图像按钮的文本框中? 这是一个很好的例子,可以帮助您使用它. http://www.codeproject.com/Articles/47474/ASP-NET-Control-from-jQuery-DatePicker-in-3-Minute 编辑1 你
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
如果要显示按钮
通过这个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
});
