protected void txtID_TextChanged(object sender, EventArgs e) { foreach (char cr in txtID.Text) { if (char.IsDigit(cr) == false) { Console.Write("Invalid Charactor"","Error Message") } }
<asp:CompareValidator runat="server" Operator="DataTypeCheck" Type="Integer" ControlToValidate="ValueTextBox" ErrorMessage="Value must be a whole number" />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)