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  >  DotNet

 Print  |  
Question:  Explain the differences between Server-side and Client-side code?



July 07, 2005 00:39:00 #3
 Pritam Baldota   Member Since: Visitor    Total Comments: N/A 

RE: Explain the differences between Server-side and Client-side code?
 
Server Side Code 
Server side is the code that resides at web server. 
For every client request code is executed at server side and result is send to the client in simple HTML format.  
Performance is lower than client side code due to server round trips.  
Client cannot see the business logic though it is stored on server. 
 
Client Side Code 
Client side code is reside at client's browser itself. It is executed at client side only. User can easily see the code by View - > Source option.  
It is generally used in validation form like text field is empty or not, email address validation etc. It is faster than server side code.
     

 

Back To Question