Hi,
Please find the below code with textbox validation has only numeric value using javascript
<head runat="server">
<script type="text/javascript">
function ValidateCCNum(ccNum) {
var ccno = ccNum.value;
if (isNaN(ccno)) {
alert("Textbox value should be numeric");
ccNum.focus();
ccNum.value = null;
return false;
}
return true;
}
</script>
</head>
<%----%>
<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
<asp:textbox id="txtCCDNo" onblur="ValidateCCNum(this)" runat="server"> </asp:textbox>
</asp:Content>
Run this code in aspx client page