but is there any way to restrict user from entering numbers into text box?
An IDE is no substitute for an Intelligent Developer.
Water! People swim in water! Even tiny ads swim in water: