Hi
I'm looking for a bit of code that will force a value entered into a text box to be a number.
I know that in javascipt, for example, you could use something like:
..but I'm not sure of the best way to reproduce this in C#
Thanks alot in advance
I'm looking for a bit of code that will force a value entered into a text box to be a number.
I know that in javascipt, for example, you could use something like:
Code:
if (isNaN(txtMonth.value)== true) {
alert("Date of birth cannot contain letters or symbols");
return;
}
Thanks alot in advance