我正在使用 updatepanel 作为链接按钮,这样它就不会刷新整个页面。单击该链接按钮时,我需要在多视图控件中设置一个活动视图,该控件在没有更新面板的情况下可以正常工作。但是当我使用更新面板时它不起作用。你能帮我怎么做吗
更新面板代码
<asp:UpdatePanel ID="UpdatePanel3" runat="server">
<ContentTemplate>
<asp:LinkButton ID="changephoto" runat="server" ForeColor="Blue" OnClick="changephoto_Click">Change Photo</asp:LinkButton><br /><br />
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="changephoto" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
点击事件
Protected Sub changephoto_Click(ByVal sender As Object, ByVal e As System.EventArgs)
MultiView_Updates.SetActiveView(View_ChangePhoto)
'bindprofileimage()
End Sub