Click here to Skip to main content
15,921,062 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Master Form fields should be validated at both client and server side before saving into database.
Posted
Updated 20-Jul-11 11:06am
v2
Comments
Sergey Alexandrovich Kryukov 22-Jul-11 0:53am    
Not a question. Not clear why both client and server.
--SA

1 solution

It means that you should first validate your input on that particular form on client side, at example via JavaScript, then again when the page is turned back on server, validate it on server side, at example in a specific method in your C# code, before committing the request on database.

You can get more information by reading this msdn document
http://msdn.microsoft.com/en-us/library/aa479045.aspx[^]

Or you can see some practical examples here

http://www.asp.net/general/videos/how-do-i-use-validation-controls-in-aspnet[^]

However both types of validation depends on the technology and platforms you are using, so you should google for more specific info.

Cheers
 
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