Link to home
Start Free TrialLog in
Avatar of Member_4438002
Member_4438002

asked on

AJAX trigger not running when placed inside TabControl

Hi,

I have an AJAX Content panel with a gridview inside.  A trigger to update the filter for this is the text change property of a text box that is outside the content panel.  Works fine

However, I want to use the AJAX TabControl, and when the textbox changes nothing happens

To start off with, I kept the text box outside the tabcontrol and the update panel, but I had an error message saying that my textbox could not be found

So I moved the textbox to inside the content panel, now nothing happens except for a beep.

I've attached the code as it currently is.  Is there a way to get this content panel to update inside a TabControl?
<ajaxToolkit:ToolkitScriptManager runat="server" ID="ScriptManager1" />
    <ajaxToolkit:TabContainer runat="server" ID="Tabs">
        <ajaxToolkit:TabPanel runat="server" ID="tbAdd" HeaderText="View Current Records">
            <ContentTemplate>
                <asp:Panel ID="pnlCurData" runat="server">
                    <asp:UpdatePanel ID="uplData" runat="server">
                        <ContentTemplate>
                            Filter Telephone:<asp:TextBox ID="txtTelephone" runat="server"></asp:TextBox><br />
                            <asp:ObjectDataSource ID="odsData" runat="server" OldValuesParameterFormatString="original_{0}"
                                SelectMethod="GetData" InsertMethod="AddData" TypeName="Data999Mgr">
                                <SelectParameters>
                                    <asp:ControlParameter ControlID="txtTelephone" Name="telNumber" PropertyName="Text"
                                        Type="String" />
                                </SelectParameters>
                            </asp:ObjectDataSource>
                            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                                AllowSorting="true" DataSourceID="odsData" CellPadding="4" ForeColor="#333333"
                                GridLines="None">
                                <Columns>
                                   <!--loads of columns here-->
                                </Columns>
                            </asp:GridView>
                        </ContentTemplate>
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="pnlCurData$txtTelephone" EventName="TextChanged" />
                        </Triggers>
                    </asp:UpdatePanel>
                </asp:Panel>
            </ContentTemplate>
        </ajaxToolkit:TabPanel>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Juan_Barrera
Juan_Barrera
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Member_4438002
Member_4438002

ASKER

Thank you, that has fixed it