我做错了什么?Ajax日历ASP.NET
当我在文本框中键入值时,上面的代码不会弹出日历。我不久前使用过Ajax,它过去工作得很好。我错过了什么 我正在使用VisualStudio2008和Ajax库3.5。其他Ajax控件(如Edit)工作正常我做错了什么?Ajax日历ASP.NET,asp.net,ajax,calendar,Asp.net,Ajax,Calendar,当我在文本框中键入值时,上面的代码不会弹出日历。我不久前使用过Ajax,它过去工作得很好。我错过了什么 我正在使用VisualStudio2008和Ajax库3.5。其他Ajax控件(如Edit)工作正常 哦,我花了两个多小时做这件事,这很简单。使用cc1作为压延延长剂,如下所示 <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> <asp:TextBox ID="Te
哦,我花了两个多小时做这件事,这很简单。使用cc1作为压延延长剂,如下所示
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:CalendarExtender ID="TextBox1_CalendarExtender" runat="server"
ClearTime="True" Enabled="True" TargetControlID="TextBox1">
</asp:CalendarExtender>
显然,我的问题是脚本管理器行
<cc1:CalendarExtender ID="TextBox1_CalendarExtender" runat="server" ClearTime="True" Enabled="True" TargetControlID="TextBox1">
</cc1:CalendarExtender>
将此更改为
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
一切都很顺利。我想你可能需要一个更新面板…在上面张贴了我自己的答案,请检查我的答案。
<ajaxToolkit:ToolkitScriptManager runat="Server" EnableScriptGlobalization="true"
EnableScriptLocalization="true" ID="ScriptManager1" ScriptMode="Debug" CombineScripts="false" />