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

What would be salary for 6+ years of experience in ASP.NET in different metro city in india?

4 Answers  


Define static member?

0 Answers  


How many Garbage Collectors are there for one Application or one Page

1 Answers   Emphasis,


How do I create a web form?

0 Answers  


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

1 Answers  






IS IT POSSIBLE TO SET TIME FOR COOKIES?HOW IT IS POSSIBLE.

1 Answers  


What is the difference between “Web.config” and “Machine.Config”?

0 Answers  


Give an example of what might be best suited to place in the application_start and session_start subroutines?

0 Answers  


What are the contents of cookie?

0 Answers  


What is personalization? What are the properties available in personalization?

1 Answers  


What is a session government?

0 Answers  


Is It Possible for Static Variables access normal variable? and Normal Varialbe Access the static Variables?

1 Answers   Phoenix Technologies,


Categories