Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AsyncPostBackTrigger is not a known element?

I'm using asp.net and c#, making a page with ajax updatepanels. When I try and insert the trigger element, I get the error message AsyncPostBackTrigger is not a known element. What am I missing?

<asp:UpdatePanel ID="UdpEPL" runat="server" UpdateMode="Conditional" 
    Visible="False">
    <ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="BtnEplShowSubmit"
                EventName="BtnEplShowSubmit_Click"/>
        </Triggers>
    </ContentTemplate>
</asp:UpdatePanel>
like image 632
Ace Troubleshooter Avatar asked Dec 21 '22 14:12

Ace Troubleshooter


1 Answers

Remove the Triggers section from your ContentTemplate:

<asp:UpdatePanel ...>
    <Triggers>
       <asp:AsyncPostBackTrigger .../>
    </Triggers>
    <ContentTemplate>

    </ContentTemplate>
</asp:UpdatePanel>
like image 107
Grant Thomas Avatar answered Dec 24 '22 03:12

Grant Thomas