Click here to Skip to main content
15,903,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
how to validate name, email-id and contact no. and how to save into sql database in asp.net
Posted
Comments
Sandeep Mewara 26-Jul-10 6:15am    
Next time onwards, also share across what research / code you have done so far.

ASP.NET provides validation control for these kind of stuff. you can use them and also modify them.
 
Share this answer
 
You can use Regular expression validator to validate email-id and contact number.
On what basis you want to validate name? Name can be anything.
 
Share this answer
 
Hi ,

Regex for Email is
^([\w\-\.]+)@((\[([0-9]{1,3}\.){3}[0-9]{1,3}\])|(([\w\-]+\.)+)([a-zA-Z]{2,4}))$

For Name

\w(?:\w+|([.\x20])(?!\1))+\s*$


For contact kindly mention whether it is mobile no and the country .

With Reg
Vinodh B
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900