
So for the Email, I want every user that register to have a @ in their Email. Otherwise, it will prompt out an error saying that Email is invalid.
For example, if the user enter "Johngmail.com" there will be an error because it doesnt have "@".
So the correct email would be "[email protected]".
Vikas PanwarPosted Nov 15, 2021, 5:55 AM
Sachin SinghPosted Nov 15, 2021, 4:58 AM
Srinivasan RamamoorthiPosted Nov 15, 2021, 4:08 AM
Use regular expression to validate.
Check this link
https://stackoverflow.com/questions/16167983/best-regular-expression-for-email-validation-in-c-sharp
Jignesh KumarPosted Nov 15, 2021, 3:53 AM