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 the difference between a multi-layer and multi-tier applications?
What is autopost?
How do u deploy your asp.net application?
How do you hide the columns?
Explain in what order a destructors is called.
What is form method?
What is the difference between mvc and asp.net? : Asp.Net MVC
What is http post and http get?
How would you get asp.net running in apache web servers? Explain it's limitations.
Explain about ASP.NET?
What is the difference between ASP.NET Webforms and ASP.NET MVC?
What are sessions in asp net?
What symbol specifies the beginning of a query string?
How can we secure the data which is send from client side to server? Like the login id and paasword needs to be authenticated on the server but we cannot send it in plain text into the server.One more thing we are not using the SSL here.
Explain the flow of processing of the request? : asp.net mvc