How do you do validations. Whether client-side or
server-side validations are better.?
Answer Posted / sudhir sheoran
Validation can be done at server side as well as
client side.
Client side validations :-
1) are of great use with the enhancement of
java scripts.
2) Performance booster as validation is done at client side.
3) security issues are there in client side validation.
4) So should be used for simple operations like
user input validations e.g valid name,valid date range,
valid phone number,email etc,where security is of not
that much concern.
Server Side validation(SSV):
1) Some validations can be done at server side only
e.g whether a email exists in database or not.
2) Decreases performance because of more trips to server
3) When security is a concern SSV should be used.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is asp according to you?
To get the values in two different controls to match which control you use it?
How many types cache in asp net?
How does u call and execute a sp in .net?
Describe the difference between inline and code behind - which is best in?
Can I combine classic asp and asp.net pages?
Contrast OOP and SOA. What are tenets of each ?
Which protocol is used in a web api?
Is viewstate enabled by default?
What are custom controls?
How to store checkbox value in database in asp.net mvc? : Asp.Net MVC
Just by seeing the signature of the bean how can you specify whether it is a stateful or stateless session bean?
What is the default authentication mode for asp.net?
What is sta?
What threading model used in asp and asp.net?