[英]asp.net : exclude control in updatepanel from doing async postback
[英]Control should be fully postback though inside updatepanel in asp.net
我有一个更新面板。 在这个里面我有几个控件,但问题是我有一个搜索snagcode的文本框,我将jquery autocomplete插件应用到它。第一次页面加载它工作正常,但之后不行,这很明显,因为它放置在更新面板中,但是我需要一次搜索snadcode,我无法将文本框移到updatepanel之外。 我该怎么办 ? 专家的任何建议都是值得期待的。 这是我的下面的布局...
<asp:UpdatePanel ID="updatepnlForSnagDefinationPATQA" runat="server">
<ContentTemplate>
<table width="100%" class="table table-stripe">
<tr>
<td>
Snag Code:
</td>
<td>
<asp:TextBox ID="txtSnagCode" runat="server" AutoCompleteType="Search" ClientIDMode="Static"> </asp:TextBox>
<asp:LinkButton ID="lnkbtnFind" runat="server" CssClass="btn btn-info" OnClick="lnkbtnFind_Click"><i class="icon-search icon-white"></i> Search</asp:LinkButton>
</td>
</tr>
<tr>
/// Some other controls here....
</table>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="txtSnagCode" />
</Triggers>
</asp:UpdatePanel>
在您的aspx页面之间尝试
<script></script>
可能会有所帮助
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function (sender, e) {
// Put your valueable code here [Between postbacks]
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.