How to validate company number text field with allows only numeric values and maximum length of 14 digits when clicking on submit button on ASP.net web page . I have a company number field on web page, when i click on submit button the web page should validate the company number field to check it has only numeric values and maximum length of 14 digits. How can i validate this using ASP.net.