Hi, call JS function on textbox. use below code for this:
<asp:textbox id="txtBox" runat="server" width="150px" onkeypress="javascript:return isNumericWithDecimal(event);" xmlns:asp="#unknown"> </asp:textbox>
JS Function
function isNumericWithDecimal(e)
{
if ((e.which < 48 || e.which > 57))
{
if (e.which == 8 || e.which == 46 || e.which == 0)
{
return true;
}
else
{
return false;
}
}
}