如何强制全回来后,从一个按钮中的一个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>
上一篇:建立在C#中的空文件文件