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
Why session is more secure than cookies?
How to communicate via Remote proxy with Client? a)MarshalByRef b)Marshal by Value or Any thing else?
How much is the pay-for-use service if I chose not to use microsoft-sponsored advertising?
Which is faster union or union all?
Can you explain autopostback?
How can we prepairing Interview
Define view state.
What are type/key pairs in client script registration? Can there be 2 scripts with the same type/key pair name?
How do you change the session time-out value?
What is httpresponse?
How to automatically get the latest version of all the asp.net solution items from source safe when opening the solution?
What are the Difference between asp.net and asp ?
What are the ways to show data grid inside a data grid for a master details type of tables? If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?
What is the purpose of App_Code folder in ASP.NET? Why we this?
To get the values in two different controls to match which control you use it?