
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]".

Jignesh KumarRank #91 · 22.9K reputationPosted Nov 14, 2021, 10:53 PM EST
Srinivasan RamamoorthiRank #877 · 2.5K reputationPosted Nov 14, 2021, 11:08 PM EST
Use regular expression to validate.
Check this link
https://stackoverflow.com/questions/16167983/best-regular-expression-for-email-validation-in-c-sharp
Sachin SinghRank #66 · 26.2K reputationPosted Nov 14, 2021, 11:58 PM EST
Vikas PanwarRank #1,447 · 1.1K reputationPosted Nov 15, 2021, 12:55 AM EST