如何强制全回来后,从一个按钮中的一个UpdatePanel?按钮、回来后、UpdatePanel

2023-09-02 11:51:42 作者:别跟我玩心跳

如何强制全回来后,从一个按钮中的一个UpdatePanel?

How do I force full post-back from a button within an UpdatePanel?

推荐答案

您可以使用的在UpdatePanel的触发器财产登记触发一个完整的回发的操作。

You can use the Triggers property of the UpdatePanel to register actions that trigger a full postback.

添加PostBackTrigger反对财产,containig这需要触发一个完整的回发控件的控件ID。

Add a PostBackTrigger object to that property, containig the ControlID of the control which needs to trigger a full postback.

<asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server">
    <ContentTemplate>
        ...
    </ContentTemplate>
    <Triggers>
        <asp:PostBackTrigger ControlID="myFullPostBackControlID" />
    </Triggers>
</asp:UpdatePanel>
 
精彩推荐