0

更新パネルがあります。この中にいくつかのコントロールがありますが、snagcode を検索するためのテキスト ボックスがあり、それに jquery オートコンプリート プラグインを適用します。最初のページの読み込みは正常に機能しますが、この後は機能しません。更新パネル内に配置されるため、明らかですが、必要ですsnadcode を 1 つずつ検索するには、テキスト ボックスを 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>&nbsp;Search</asp:LinkButton>
                        </td>
                    </tr>
                    <tr>
                        /// Some other controls here....
 </table>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="txtSnagCode" />
            </Triggers>
        </asp:UpdatePanel>
4

1 に答える 1

0

あなたのaspxページでこれを試してください

<script></script>

役に立つかもしれません

Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function (sender, e) {
       // Put your valueable code here [Between postbacks]
    });
于 2013-03-12T14:43:21.103 に答える