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


Please Help Members By Posting Answers For Below Questions

What are the asp.net server side objects?

519


What is difference between web api and web services?

533


What is asp.net globalization?

495


What are session state modes? List some of the important session state modes of asp.net.

532


What are the two properties that are common on every validation control?

552






Explain server side state management system.

547


Explain the overview of asp.net?

558


What is asp.net file?

629


What methods are fired during the page load? Init()

514


When you use Ajax controls in the ASP.NET application?

564


What is the compiled object?

1635


Explain the main function of razor in asp.net? : asp.net mvc

585


How to comment out asp.net tags?

629


Explain how dot net compiled code will become platform independent?

505


What is the usage of DelegatingHandler?

589