GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  DotNet
Go To First  |  Previous Question  |  Next Question 
 DotNet  |  Question 4 of 165    Print  
Should validation (did the user enter a real date) occur server-side or client-side? Why?

  
Total Answers and Comments: 7 Last Update: January 13, 2007   
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Jitendra Kumar Thakur
 
It should be done at Clientside, Serverside. Clientside will reduce roundtrip to server and Serverside is useful for some security reasons. Suppose a user downloaded your web page on his hardisk and after removing your client side validation code trying to access your site. Page.IsValid is there for rescue but there is some trick to bypass. In such cases unwanted users can access your site and to avoid such hacking one must do Server and Clientside validation.

Above answer was rated as good by the following members:
fififinn, RanjeetaRajendran, prapthi
March 10, 2005 10:27:54   #1  
Binda Joshi        

RE: Should validation (did the user enter a real date) occur server-side or client-side? Why?
This validation should coccur at the client side cause its easy to validate in the client side rather than shooting it all the way to the server which increase procesign time and all unneccssary delays.
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
June 18, 2005 01:11:00   #2  
sreenivaas        

RE: Should validation (did the user enter a real date) occur server-side or client-side? Why?
validation will be done in both sides i.e. at the server side and client side. Server side validation will be done even though client side validation performed on the code because of proper security reasons.
 
Is this answer useful? Yes | No
July 19, 2005 00:22:15   #3  
Bindu        

RE: Should validation (did the user enter a real date) occur server-side or client-side? Why?
Validations are suggested to be done at every end. Client side Server side and also at Database end by using constraints triggers etc.
Out of client side and server side it is always suggested to do the maximum validations at client side as the network traffic would be less. Certain times server side validations are also unavoidable though.

 
Is this answer useful? Yes | No
August 13, 2005 14:37:10   #4  
Jitendra Kumar Thakur        

RE: Should validation (did the user enter a real date) occur server-side or client-side? Why?
It should be done at Clientside Serverside. Clientside will reduce roundtrip to server and Serverside is useful for some security reasons. Suppose a user downloaded your web page on his hardisk and after removing your client side validation code trying to access your site. Page.IsValid is there for rescue but there is some trick to bypass. In such cases unwanted users can access your site and to avoid such hacking one must do Server and Clientside validation.
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
July 03, 2006 13:40:28   #5  
satyambabu53 Member Since: July 2006   Contribution: 8    

RE: Should validation (did the user enter a real date)...
client side is best because no time to take.
 
Is this answer useful? Yes | No
September 28, 2006 00:37:45   #6  
Tahmeem        

RE: Should validation (did the user enter a real date)...
As always said and some said it is good at client sid as it takes no time but at the sam etime server side validation is also important Take an example where you are entering a date greater than todays date but this may not be suitable at some cases like i got a form where i got surgery details and am not supposed to enter a date grater than todays date and if it is a server side you can have th present date that is the system date of th server but if only client side validation is done then the user can change the daate and can procedd with the form
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
January 13, 2007 04:41:15   #7  
Eldad Finkelstein        

RE: Should validation (did the user enter a real date)...

Another reason to consider server validation is a synchronization issue.

Say I want to book a ticket tomorrow for the cinema. Even if the application brings all necessary information for validation meaning both the date format and all available dates and seats there's still a chance that another user is requesting the same things I'm requesting thus causing a clash.


 
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