开发者

AsyncPostBackTrigger is not a known element?

开发者 https://www.devze.com 2023-03-01 18:32 出处:网络
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?

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>


Remove the Triggers section from your ContentTemplate:

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

    </ContentTemplate>
</asp:UpdatePanel>
0

精彩评论

暂无评论...
验证码 换一张
取 消