<< split from http://www.daniweb.com/forums/thread213753.html >>
i have another problem that is i want to restrict my code with alphabets and alphanumeric. for restricting alphabets i am using
nt ascii = e.KeyChar; if ((ascii < 65 || (ascii > 90 && (ascii < 97 || ascii > 122)))) e.Handled = true; if (ascii == 13) txtname.Focus();
this restricts to only alphabets and moreover i am using
int ascii = e.KeyChar; if (ascii < 46 || ascii > 57) e.Handled = true; if (ascii == 13) txtempid.Focus(); for alphanumeric.
could you please tell me if i want only allow to enter alphabets and alphanumeric???