Skip to content

Custom Form validation in ASP.NET MVC done using regular expression.

Notifications You must be signed in to change notification settings

Shohaibur/FormValidaiton-ASP.NET

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FormValidaiton

Custom Validation rules for dfferent field in the form :

Name

  1. Minimum 4, maximum 50 characters long
  2. No numbers and no special characters allowed
  3. ( )spaces, (.)dot, (-)dash allowed but not more than one alongside

User Id

  1. Minimum 4, maximum 12 characters long
  2. No ( )spaces, no (.)dots allowed
  3. Numbers allowed
  4. (-)dash, (_)underscore are allowed

Password

  1. Minimum 8 characters long
  2. First 4 characters must be alphabets including
    1. At least 1 uppercase letter
    2. At least 2 lowercase letters
  3. Next 4 characters must be combination of
    1. Special characters
    2. Numbers

Id

  1. Id structure must be of x-xxxxx-x i.e. 20-42424-1

Email

  1. Email must be of structure xx-xxxxx-x@student.aiub.edu
  2. I.e. if id is '20-42424-1' then email must be '20-42424-1@student.aiub.edu'

Date

  1. Date of birth must be at least 18 years or older

Invalid Signup snapshot

When input fields are empty

alt text

When input input format is wrong

alt text

Valid Signup snapshot

alt text

alt text

About

Custom Form validation in ASP.NET MVC done using regular expression.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published