<asp:TextBox CssClass="InputBox" onkeypress="return isValidKey(event)" ID="txtRefundAmount" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Amount") %>'></asp:TextBox>
function isValidKey(e) { return false; }
function isValidKey(e) { var charCode = e.keyCode || e.which; if (charCode == 8 || charCode == 46) return false; return true; } <input id="tb_box" onkeydown="return isValidKey(event)" type="text" />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)