AsyncPostBackTrigger不是已知元素?

Ace*_*ter 4 html c# asp.net ajax visual-studio

我正在使用asp.net和c#,制作一个带有ajax updatepanels的页面.当我尝试插入触发器元素时,我收到错误消息AsyncPostBackTrigger不是已知元素.我错过了什么?

<asp:UpdatePanel ID="UdpEPL" runat="server" UpdateMode="Conditional" 
    Visible="False">
    <ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="BtnEplShowSubmit"
                EventName="BtnEplShowSubmit_Click"/>
        </Triggers>
    </ContentTemplate>
</asp:UpdatePanel>
Run Code Online (Sandbox Code Playgroud)

Gra*_*mas 11

Triggers从您的删除部分ContentTemplate:

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

    </ContentTemplate>
</asp:UpdatePanel>
Run Code Online (Sandbox Code Playgroud)