GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  ASP
Go To First  |  Previous Question  |  Next Question 
 ASP  |  Question 146 of 147    Print  
User Input Data Validation
Should user input data validation occur server-side or client-side? Why?


  
Total Answers and Comments: 3 Last Update: November 09, 2009     Asked by: motionbreaker 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Paul Brennan
 
Validation should be done BOTH on the client and on the server. This even includes validation that has already been done on the client, due to the risk of spoofing.

The only reason validation is first done on the client is to reduce the number of round trips between the client and the server.

Above answer was rated as good by the following members:
vmukkavi
October 19, 2008 13:56:44   #1  
ptharak Member Since: October 2008   Contribution: 6    

RE: User Input Data Validation

User input validation is Client side only because there is no need to Validate Serverside.
If get the values from DB then you need to validate Serverside


 
Is this answer useful? Yes | No
December 27, 2008 07:15:43   #2  
Paul Brennan Member Since: December 2008   Contribution: 2    

RE: User Input Data Validation
Validation should be done BOTH on the client and on the server. This even includes validation that has already been done on the client due to the risk of spoofing.

The only reason validation is first done on the client is to reduce the number of round trips between the client and the server.

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
November 08, 2009 11:39:57   #3  
santodip Member Since: December 2006   Contribution: 2    

RE: User Input Data Validation
First step validation should be done at client-side using JavaScript.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape