asp.net:在UpdatePanel中从做异步回发排除控制 [英] asp.net : exclude control in updatepanel from doing async postback
本文介绍了asp.net:在UpdatePanel中从做异步回发排除控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经把更新面板内的用户控件这样做的用户控制的关联页面js文件的异步回发不工作,这样以后有没有在另一个词我不想从发布的UpdatePanel排除控制方法该用户的控制。
< ASP:的UpdatePanel ID =upPnlAnswerList=服务器>
<&的ContentTemplate GT;
//放在里面的UpdatePanel,需要到另一个code < DIV ID =miancontainer级=containerr
< klmsuc:共享ID =shareUserControl=服务器/> //放在里面的UpdatePanel,需要到另一个code < / DIV>
解决方案
设置的UpdateMode =条件,为的UpdatePanel提供独家触发器。
请参阅:
http://msdn.microsoft.com/en-us/library/bb386454.aspx
I have placed a user control inside update panel after doing asynchronous postback of page associated js file of that user control is not working so that is there any method to exclude a control from updatepanel in another word i don't want to post that user control.
<asp:UpdatePanel ID="upPnlAnswerList" runat="server">
<ContentTemplate>
// another code that required to placed inside updatepanel
<div id="miancontainer" class="containerr"
<klmsuc:Share ID="shareUserControl" runat="server" />
// another code that required to placed inside updatepanel
</div>
解决方案
Set UpdateMode=Conditional and provide exclusive Triggers for the UpdatePanel.
See: http://msdn.microsoft.com/en-us/library/bb386454.aspx
这篇关于asp.net:在UpdatePanel中从做异步回发排除控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文