添加scriptmanager和updatepanel后,Page.IsPostback总是返回false [英] After adding scriptmanager and updatepanel Page.IsPostback always return false
问题描述
您好,
我正在开发asp.net网站。没有添加ajax scriptmanegr和更新面板我的页面正常工作。但是在添加了scriptmanager和update面板后,我发现Page.IsPostBack和ScriptManager1.IsInAsyncPostBack总是返回false。
请建议关于它。
提前致谢
Hello,
I am developing asp.net website. Without adding ajax scriptmanegr and update panel my page working properly. But after adding scriptmanager and update panel I found that Page.IsPostBack and ScriptManager1.IsInAsyncPostBack always return false.
Please suggest regarding it.
Thanks in advance
推荐答案
要拨打回发活动,请尝试下面
To call postback event , try below
<Triggers>
<asp:PostBackTrigger ControlID="Button1" />
</Triggers>
</asp:UpdatePanel>
< postbacktrigger>指定将导致整页更新(整页刷新)的控件和事件。当控件以其他方式触发部分渲染时,此标记可用于强制完全刷新。
<postbacktrigger> Specifies a control and event that will cause a full page update (a full page refresh). This tag can be used to force a full refresh when a control would otherwise trigger partial rendering.
这篇关于添加scriptmanager和updatepanel后,Page.IsPostback总是返回false的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!