How do you do validations. Whether client-side or
server-side validations are better ?

Answers were Sorted based on User's Feedback



How do you do validations. Whether client-side or server-side validations are better ?..

Answer / abhishek kumar

Server side validation is always better option to have
safe side due to the following resons.

i) Client side script is always a security risk and in many
case it is not allowed, and for the same reason JavaScript
that is behind nearly all client side validation could be
turned off in web browser.

ii) Validation that requires a database only server side
validation is better option.

iii) Keeping all validation code at one place.

To minimise trips that user has to face in the case of
server-side validation it will be better option to validate
all input fields at once when they are submitted to server
and returning back a single error message for all invalid
entries.

Is This Answer Correct ?    7 Yes 1 No

How do you do validations. Whether client-side or server-side validations are better ?..

Answer / sivasaravanan

using javascript. Client side validation better.

Is This Answer Correct ?    2 Yes 5 No

Post New Answer

More ASP.NET Interview Questions

Does the following statement executes successfully: Response.Write(?value of i = ? + i);

4 Answers   TCS,


What is session start?

0 Answers  


Can you use c# without .net?

0 Answers  


Explain the difference between an exe and a dll?

0 Answers  


What’s the difference between response .redirect and server.transfer?

0 Answers  






How to make sure that contents of an updatepanel update only when a partial postback takes place (and not on a full postback)?

0 Answers  


can any one tell about web services?

5 Answers  


What is the difference between page.registerclientscriptblock and page.registerstartupscript?

0 Answers  


In try catch blocks one is normal catch block and another is sqlcatchexception block

3 Answers   Microsoft,


Why we are using mvc instead of asp.net? : Asp.Net MVC

0 Answers  


what is state management,what is the purpose of it,how it will be implemented in real time?

2 Answers  


How to fetch a data from one table to another table in asp.net ?

0 Answers   MCN Solutions,


Categories