I have tried this code to restrict only numbers.It type only numbers and don\'t make entry when we try to enter characters or any other controls, even it doesnt enter backsp
you can use Char.IsDigit() method
Char.IsDigit()