I use your code but AlphaNumeric allow this character !"#$%&/()=
><.-_:; not allow
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>Untitled Page</title>
<script type = "text/javascript">
function isNumeric(keyCode) {
return ((keyCode >= 48 && keyCode <= 57) || keyCode == 8)
}
</script>
<script type = "text/javascript">
function isAlpha(keyCode) {
return ((keyCode >= 65 && keyCode <= 90) || keyCode == 8)
}
</script>
<script type = "text/javascript">
function isAlphaNumeric(keyCode) {
return ((keyCode >= 48 && keyCode <= 57) || (keyCode >= 65 && keyCode <= 90) || keyCode == 8)
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="Label1" runat="server" Text="Numeric"></asp:Label>
<asp:TextBox ID="txtNumeric" runat="server" onkeydown = "return isNumeric(event.keyCode);" onpaste = "return false;"></asp:TextBox>
<asp:Label ID="lblNumeric" ForeColor = "Red" runat="server" Text="Only Numeric Characters Allowed" style ="visibility:hidden"></asp:Label><br /><br />
<asp:Label ID="lblAlpha" runat="server" Text="Alpha"></asp:Label>
<asp:TextBox ID="txtAlpha" runat="server" onkeydown = "return isAlpha(event.keyCode);" onpaste = "return false;"></asp:TextBox>
<asp:Label ID="Label4" ForeColor = "Red" runat="server" Text="Only Aphabetic Characters Allowed" style ="visibility:hidden"></asp:Label><br /><br />
<asp:Label ID="lblAlphaNum" runat="server" Text="AlphaNumeric"></asp:Label>
<asp:TextBox ID="txtAlphaNumeric" runat="server" onkeydown = "return isAlphaNumeric(event.keyCode);" onpaste = "return false;"></asp:TextBox>
<asp:Label ID="Label5" ForeColor = "Red" runat="server" Text="Only Alphanumeric Characters Allowed" style ="visibility:hidden"></asp:Label>
</div>
</form>
</body>
What is prblem?