在更新面板中使用日历扩展程序文本框时出错

时间:2013-11-27 09:43:53

标签: c# asp.net ajax asp.net-ajax ajaxcontroltoolkit

<%@ Page Title="" Language="C#" MasterPageFile="~/MainMaster.Master" AutoEventWireup="true"
    CodeBehind="Dash.aspx.cs" Inherits="Billing_Module.Dash" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="Libero.FusionCharts" Namespace="Libero.FusionCharts.Control"
    TagPrefix="fcl" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
<asp:CalendarExtender ID="CalendarExtender3" runat="server" TargetControlID="txtFromDateF">
                </asp:CalendarExtender>
                <asp:CalendarExtender ID="CalendarExtender4" runat="server" TargetControlID="txtToDateF">
                </asp:CalendarExtender>
       <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                        From Date<asp:TextBox ID="txtFromDateF" runat="server" autocomplete="off"></asp:TextBox>
                        To Date<asp:TextBox ID="txtToDateF" runat="server" autocomplete="off"></asp:TextBox>
                        <asp:Button ID="btnRefreshFP" runat="server" Text="View" OnClick="btnRefreshFP_Click" />
                        <fcl:FChart runat="server" ID="chtPerfomance" Width="530" Height="225" />
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="btnRefreshFP" EventName="Click" />
                    </Triggers>
                </asp:UpdatePanel>
</asp:Content>

我有一个更新面板,其中包含日期和日期以及一个按钮。我想根据日期显示融合图表。我的代码如上所述。当我运行它时,这个错误来了  An extender can't be in a different UpdatePanel than the control it extends.

请帮助

0 个答案:

没有答案