简体   繁体   English

尽管应该在asp.net的updatepanel内部进行完全回发控制,

[英]Control should be fully postback though inside updatepanel in asp.net

I have a update panel. 我有一个更新面板。 Inside this i have several controls but the thing is i have a textbox for searching snagcode and i apply jquery autocomplete plugin to it.First time page load it works fine but not after this and that is obvious because it place inside update panel but i need to search snadcode one by one and i can't move the textbox outside updatepanel. 在这个里面我有几个控件,但问题是我有一个搜索snagcode的文本框,我将jquery autocomplete插件应用到它。第一次页面加载它工作正常,但之后不行,这很明显,因为它放置在更新面板中,但是我需要一次搜索snadcode,我无法将文本框移到updatepanel之外。 What should i do ? 我该怎么办 ? Any suggestion from expert is highly expected. 专家的任何建议都是值得期待的。 Here is my layout below... 这是我的下面的布局...

<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>&nbsp;Search</asp:LinkButton>
                        </td>
                    </tr>
                    <tr>
                        /// Some other controls here....
 </table>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="txtSnagCode" />
            </Triggers>
        </asp:UpdatePanel>

Try this in your aspx page between 在您的aspx页面之间尝试

<script></script>

May be it can be helpful 可能会有所帮助

Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function (sender, e) {
       // Put your valueable code here [Between postbacks]
    });

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM