<script language="javascript" type="text/javascript">
function onlyNumbers(evt) {
var e = event || evt;
var charCode = e.which || e.keyCode;
if (charCode > 31 && (charCode < 48 || charCode > 57))
return false;
return true;
}
</script>
<asp:TextBox ID="txt" runat="server" MaxLength="3" onkeypress="return onlyNumbers();"></asp:TextBox>
function onlyNumbers(evt) {
var e = event || evt;
var charCode = e.which || e.keyCode;
if (charCode > 31 && (charCode < 48 || charCode > 57))
return false;
return true;
}
</script>
<asp:TextBox ID="txt" runat="server" MaxLength="3" onkeypress="return onlyNumbers();"></asp:TextBox>
it’s pretty good and I am finding some more information from you.
ReplyDeleteSoftware Development Company Malaysia