How to call postback from TextBox on TextChange event without focus being changed?
<p>The sitiation:
I need to databind the gridview inside the Ajax UpdatePanel each time user types letter inside my TextBox control. How to override the TextChange event to force it do postback for me?
Thanks!</p>

<pre><code>&lt;script type="text/javascript"&gt;

    function ace1_itemSelected(sender, e) {
        var hdCustID = $get('&lt;%= hdCustID.ClientID %&gt;');
        hdCustID.value = e.get_value();
    }

&lt;/script&gt;
&lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt;
    &lt;ContentTemplate&gt;
        &lt;asp:Label ID="lblCustName" Text="Cust Name:" AssociatedControlID="txtCustName" runat="server" /&gt;
        &lt;asp:TextBox ID="txtCustName" AutoPostBack="false" AutoComplete="Off" runat="server" OnTextChanged="txtCustName_TextChanged" /&gt;
        &lt;ajaxToolkit:AutoCompleteExtender id="ace1" targetcontrolid="txtCustName" ServicePath="~/WebServices/FoodItemSuggestionService.asmx" servicemethod="FindTitles"
            minimumprefixlength="1" OnClientItemSelected="ace1_itemSelected" firstrowselected="false" runat="server" /&gt;
        &lt;asp:HiddenField ID="hdCustID" runat="server" /&gt;
        &lt;br /&gt;
        &lt;br /&gt;
        &lt;br /&gt;
        &lt;asp:GridView ID="gvCustomer" runat="server" AutoGenerateColumns="False" CellPadding="4"
            ForeColor="#333333" GridLines="None" PageSize="4" BorderStyle="Groove"&gt;
            &lt;RowStyle BackColor="#EFF3FB" /&gt;
            &lt;Columns&gt;
                &lt;asp:BoundField DataField="Id" HeaderText="Id" SortExpression="Id" /&gt;
                &lt;asp:BoundField DataField="Title" HeaderText="Название" SortExpression="Title" /&gt;
                &lt;asp:BoundField DataField="CategoryTitle" HeaderText="Категория" SortExpression="CategoryTitle" /&gt;
            &lt;/Columns&gt;
            &lt;FooterStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True" /&gt;
            &lt;PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" /&gt;
            &lt;SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" /&gt;
            &lt;HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /&gt;
            &lt;EditRowStyle BackColor="#2461BF" /&gt;
            &lt;AlternatingRowStyle BackColor="White" /&gt;
        &lt;/asp:GridView&gt;
    &lt;/ContentTemplate&gt;
&lt;/asp:UpdatePanel&gt;

protected void txtCustName_TextChanged(object sender, EventArgs e)
    {
        try
        {
            gvCustomer.DataSource = FoodItemBO.FindFoodItems(hdCustID.Value);
            gvCustomer.DataBind();
        }
        catch (Exception ex)
        {
            throw ex;
        }
    }
</code></pre>
