Griview Textbox textchanged event not firing
<p>I've a Gridview with textbox having id gdtxtPayingamount.I've used textchanged event.</p>

<p>In normal case its works fine.</p>

<p>But I've used a javascript function for checking numbers only in the textbox.Javascript works fine and it shows alert when a string is entered.The problem is when number is entered, textchanged event is not firing </p>

<p>Javascript is as follows</p>

<pre><code>function CheckNumbers(objRef)
{        
    if(isNaN(objRef.value))
    {
        alert('Enter number only');
        objRef.value="";
        return false;
    }
    else
    {
        return true;
    }

}
</code></pre>

<p>I've called this javascript in gridview rowcreated event</p>

<pre><code>protected void gdMainDetails_RowCreated(object sender, GridViewRowEventArgs e)
{
    if (e.Row.RowType == DataControlRowType.DataRow)
    {

            TextBox txt = (TextBox)e.Row.FindControl("gdtxtPayingAmount");
            txt.Attributes.Add("onkeyup", "return CheckNumbers(" + txt.ClientID + ")");

    }
}
</code></pre>

<p>Javascript works fine and it shows alert when a string is entered.The problem is when number is entered textchanged event is not firing </p>
