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 is difference between Lambda Expression and LINQ in ASP.NET?
What is the difference between dynamic SGA and static SGA?
What is the main differences between asp and asp.net?
What are the different session state management options available in asp.net?
Which protocol is used to call web service?
How to register exception filter globally?
If you want to bind the columns manually within the asp:datagrid tags what kind of tags you have to add.
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
Difference between application events and session events
What is full trust in asp.net?
What are HTTP handlers in ASP.NET?
What are the uses of list view control in Asp.net?
Explain server side state management system.
Define static member?
What are different types of api?