ASP.NET textbox key-up(JS) and TextBoxChaged(Server) event not working simultaneously.
<p>I have a text-box in the Gridview, 
and have a javascript function works on textbox keyup, called "<code>clearNoNum(obj)</code>" to check up isnumber,<br></p>

<p>I have registered a textbox event(server side) '<code>TextBoxChanged</code>', and the <code>AutoPostBack=true</code><br></p>

<p>My question is: The server side <code>TextBoxChange</code> event would not fired, if have onkeyup javascript function defined on text-box.</p>

<p>Following is my code:</p>

<pre><code>  &lt;asp:TemplateField HeaderText="Number" ItemStyle-Width="100px" ItemStyle-HorizontalAlign="Center"&gt;
            &lt;ItemTemplate&gt;
                &lt;asp:TextBox ID="tbxNumber" AutoPostBack="true" onkeyup="clearNoNum(this)"    runat="server"
                    OnTextChanged="tbxNumber_TextChanged" Text='&lt;%#Eval("Number")%&gt;'&gt;&lt;/asp:TextBox&gt;
            &lt;/ItemTemplate&gt;
</code></pre>

<p>jS func:</p>

<pre><code> function clearNoNum(obj) {

    obj.value = obj.value.replace(/[^\d.]/g, "");

    obj.value = obj.value.replace(/^\./g, "");

    obj.value = obj.value.replace(/\.{2,}/g, ".");

    obj.value = obj.value.replace(".", "$#$").replace(/\./g, "").replace("$#$", ".");

}
</code></pre>

<p>.cs event</p>

<pre><code>    protected void tbxNumber_TextChanged(object sender, EventArgs e)
{
    TextBox tbxNumber = (TextBox)sender;
    GridViewRow gvr = (GridViewRow)tbxNumber.NamingContainer; 
    Label lblunitsPrice = ((Label)gvr.FindControl("lblunitsPrice"));
    Label lblTotalPrice = ((Label)gvr.FindControl("lblTotalPrice"));
    lblTotalPrice.Text = (int.Parse(lblunitsPrice.Text) * int.Parse(tbxNumber.Text)).ToString();
}
</code></pre>
