How do you do validations. Whether client-side or
server-side validations are better ?
Answer Posted / 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 |
Post New Answer View All Answers
What are the features of asp.net mvc?
What are the security types in ASP/ASP.NET? Different Authentication modes?
Is it possible to apply themes to an asp.net application? If yes, then how?
What is the function of the ViewState property?
Give 2 examples for scenarios when routing is not applied?
Why session is more secure than cookies?
What are the features of asp net?
What does the orientation property do in a menu control?
Differentiate between namespace and assembly.
What is asp.net master page?
Describe the master page.
What is server transfer?
How to include silver light .xap page into asp.net web application and what is the purpose of using silverlight application?
What is a web server? What are the load limits in it?
What are the new navigation controls in asp.net 2.0?