当我添加新的AjaxControllToolkit时,CalendarExtender停止工作

时间:2014-04-18 12:44:02

标签: .net ajaxcontroltoolkit

当我添加新的AjaxControllToolkit时,CalendarExtender停止工作。我测试过,它正在使用

<ajaxToolkit:ToolkitScriptManager runat="Server" EnablePartialRendering="true" ID="ToolkitScriptManager1" /> 

但是我不想使用ajaxToolkit:ToolkitScriptManager,有没有人知道它为什么停止工作?我怎样才能让它再次使用asp:ScriptManager

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>Untitled Page</title>
    </head>
    <body>

        <form id="form1" runat="server">
        <div>    
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
             <ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat="server" CssClass="MyCalendar"
         PopupButtonID="imgCal1" TargetControlID="txtStartDate">
            </ajaxToolkit:CalendarExtender>
            <asp:TextBox ID="txtStartDate" runat="server"></asp:TextBox>
            <img  src="../../Images/imgdtpicker.png" id="imgCal1" runat="server" alt="" />
        </div>
        </form>
    </body>
    </html>

0 个答案:

没有答案