GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Microsoft  >  ASP

 Print  |  
Question:  User Input Data Validation

Answer: Should user input data validation occur server-side or client-side? Why?


December 12, 2008 07:15:43 #2
 Paul Brennan   Member Since: December 2008    Total Comments: 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.
     

 

Back To Question