我喜欢日历扩展器,但我无法在我的MVC应用程序中使用它。如何将日历扩展器连接到MVC中的文本框......或者为此添加扩展器?我可以在MVC中使用我心爱的Calendar Extender吗?
老方法......
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
...
<asp:TextBox ID="txtDate1" runat="server" ValidationGroup="DateCheck">
</asp:TextBox>
...
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
...
<cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDate1">
</cc1:CalendarExtender>
首选项,我认为CalendarExtender看起来更好。不只是CSS。 – 2010-02-22 16:12:15