我需要将按钮保留在用户控件(.ascx)文件中。我已经为同一个按钮提供了 AsyncPostBackTrigger controlid。但在 UpdatePanel 中找不到触发器显示“错误”。任何人都可以帮助我吗?这个我给了controlid
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:Panel ID="pnlYourAccount" runat="server" Style="display: none; height: 100%;
margin-left: 330px; margin-top: -230px;">
here is my design
</asp:Panel>
</<ContentTemplate>
</asp:UpdatePanel>
`
<Triggers>
<asp:AsyncPostBackTrigger ControlID="btn1" EventName="Click" />
</Triggers>
`
这个链接按钮我保存在用户控件中(用于顶部菜单)。当点击菜单时,内容应该得到更新
<asp:LinkButton class="anchorstyle" ID="btn1" runat="server" Text="MenuName" />