我正在使用 asp.net 和 c#,使用 ajax updatepanels 制作一个页面。当我尝试插入触发器元素时,我收到错误消息 AsyncPostBackTrigger is not a known element。我错过了什么?
<asp:UpdatePanel ID="UdpEPL" runat="server" UpdateMode="Conditional"
Visible="False">
<ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="BtnEplShowSubmit"
EventName="BtnEplShowSubmit_Click"/>
</Triggers>
</ContentTemplate>
</asp:UpdatePanel>
最佳答案
从 ContentTemplate
中删除 Triggers
部分:
<asp:UpdatePanel ...>
<Triggers>
<asp:AsyncPostBackTrigger .../>
</Triggers>
<ContentTemplate>
</ContentTemplate>
</asp:UpdatePanel>
关于c# - AsyncPostBackTrigger 不是已知元素?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5852515/