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 object is used to encapsulate a rowset? a) DataSet b) DataAdapter c) DataRowSet d) DataTable

2 Answers   Syntax Softtech,


What is web.config and machine.config ?

1 Answers   Patni,


How we can force all the validation controls to run?

0 Answers  


What are the types of assemblies and where can u store them and how ?

1 Answers   Patni,


Difference between Response.Expires and Expires.Absolute ?

1 Answers   Accenture, BirlaSoft,






How to configure a website without using IIS.

3 Answers   CGI,


5. What three Specific Job Positions do you target from Swatz Oils GROUP U.K?

0 Answers   Swatz Oils,


How to find the client browser type ?

4 Answers   AQA, Cognizant, Satyam,


What are the main differences between asp and asp.net?

0 Answers  


What are the different ways you would consider sending data across pages in ASP (i.e between 1.asp to 2.asp)?

1 Answers   Net Solution,


if you disable view state of a textbox will it maintain data during postbacks.if yes reason

9 Answers   FactorH, Jindal, Oxi Infotech,


what are types of viewstate

1 Answers  


Categories