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
How does session id work?
Explain how can we inherit a static member?
Name the method that needs to be invoked on the dataadapter control to fill the generated dataset with data?
What is the purpose of asp.net?
To bind columns manually which tags do you need to add within the asp:datagrid ?
What are the different kinds of assemblies?
Is it possible to create web application with both webforms and mvc?
what is loosely coupled solution? How it can be used?
What is the procedure to handle the process request using mhpm events fired? : asp.net mvc
What is the best Macanism to clear the Cache in asp.net
What is asp.net mvc5? : Asp.Net MVC
What are server activated objects?
What tags do you need to add within the asp:datagrid tags to bind columns manually? How?
Can we use a static function with a non-static variable?
How to make sure that contents of an updatepanel update only when a partial postback takes place (and not on a full postback)?