Form Validations

Results 1 to 2 of 2

Thread: Form Validations

  1. #1
    Join Date
    Dec 1969

    Default Form Validations

    In order to validate a Form, I want to take care of the following things:<BR><BR>1. Allow only letters (both upper & lower case); no number & special characters in a particular field<BR>2. Email address should have &#039;@&#039; & &#039;.&#039;<BR>3. No space anywhere in the UserID<BR>4. In the password field & re-enter password field, both the passwords should be identical to each other.<BR>5. In the Telephone No. field, telephone no. cannot be zero. Also should have whole numbers only; no letters & special characters<BR>6. Also none of the Form fields can start with a space<BR><BR>How do I validate the above using ASP.NET?<BR><BR>Thanks,<BR><BR>Arpan

  2. #2
    Join Date
    Dec 1969

    Default RE: Form Validations<BR>Start with this article on ASP.NET form input validation.<BR>Part way down is a link to the index of articles on Regular Expressions. Most of what you want, you can achieve using ASP.NET&#039;s RegularExpressionValidator control type.<BR><BR>Cheers,<BR><BR>A. P.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts