// i had textbox to enter isbn number which include neumerics and '-' character // so i used filter text box extender <asp:TextBox ID="txtISBN" runat="server" CssClass="textbox" Width="200px" MaxLength="15"> </asp:TextBox> <asp:FilteredTextBoxExtender ID="txtISBN_FilteredTextBoxExtender" runat="server" Enabled="True" TargetControlID="txtISBN" ValidChars="0123456789-"> </asp:FilteredTextBoxExtender> // if you dont have ajax toolkit then // check this link where people did with jquery // http://stackoverflow.com/questions/995183/how-to-allow-only-numeric-0-9-in-html-inputbox-using-jquery
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)