0
我在一页上有一个日历扩展器,它工作正常。与脚本管理器放在面板中,没有问题。但是,在另一个aspx页面上,尽管我的脚本管理器处于相同位置,但使用相同的格式,日历扩展器不可用。错误消息报告日历扩展程序不是已知的元素。为什么?两个实例的代码如下。尽管脚本管理器,Ajax日历扩展器不可用?
好页:
<asp:Panel ID="Panel1" runat="server" BorderWidth="4px" BorderStyle="Solid" CssClass="myPanelCss" Width="700px">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:Table runat="server" Width="700px">
<asp:TableRow VerticalAlign="Top">
<asp:TableCell>`<asp:TextBox ID="TbEffectiveDate" runat="server"></asp:TextBox>
<asp:CalendarExtender ID="TbEffectiveDate_CalendarExtender" runat="server"
TargetControlID="TbEffectiveDate">
</asp:CalendarExtender>`
坏页:
<asp:Panel ID="SubPanel" CssClass="myPanelCss" BorderWidth= "4px" BorderStyle="Solid" runat="server" Width="593px">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:Table runat="server" HorizontalAlign="Center" Width="567px">
<asp:TableRow>
<asp:TableCell><asp:TextBox ID="TbEffectDate" runat="server"></asp:TextBox>
<asp:CalendarExtender ID="TbEffectDate_CalendarExtender" runat="server"
TargetControlID="TbEffectDate">
</asp:CalendarExtender>
快速回答:我必须在第二页上使用ToolKitScriptManager。现在扩展器工作正常。我的问题:为什么不在第一页上? – 2011-05-20 06:59:00