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

How do u declare static variable and how it is declared and what is its lifetime?

0 Answers  


What is asp.net web application?

0 Answers  


What is the difference between custom web user control and a custom web server control?

0 Answers  


What are Themes? What is their use ?

1 Answers  


In my code i have 3 tables,i have to insert 3 tables data using single insert query so that i wrote transations in a sp.but what my problem is,in those 3 tables i have to include my empId from another table.when i'm passing values im getting error at this EmpId. how can i solve this error to execute insert query? plesae tell me the solution...

1 Answers  






What are sql notifications and sql invalidations?

0 Answers  


Is there any property names “isnavigating”?

0 Answers  


Which is the parent class of the web server control?

0 Answers  


What is the purpose of master page?

0 Answers  


code for "For every 5days system has to create 1text file with the corresponding date and it has to store in c-drive" by using web applications

0 Answers  


What are the Types of chaching. How to implement caching

0 Answers   Microsoft,


What are user controls?

0 Answers  


Categories