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 viewstate? What does the "enableviewstate” property do? Whay would I want it on or off?
If you want to bind the columns manually within the asp:datagrid tags what kind of tags you have to add.
How do I use a proxy server when invoking a web service?
can s/w quality assurance engineer switch field to programming side i m very much interested in programming but not much good in it
How is session id generated?
What are directives in asp.net? List down all the important directives.
Is it possible to create web application with both webforms and mvc?
Explain how can we inherit a static member?
Why is it preferred to not use finalize for clean up?
What are ASP.NET Web Forms? How is this technology different than what is available though ASP?
Where sessions are stored?
What is GAC in ASP.NET 2.0
is gateway for sms continue connected for sending sms.how?
How do I send an email message from my ASP.NET page?
Mention the execution process for managed code?