Explain the differences between Server-side and Client-side
code?

Answer Posted / madhu babu mallidi

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.

server side code is responsible to execute and provide the
executed code to the browser at the client side. the
executed code may be either in XML or Plain HTML. the
executed code only have the values or the results that are
executed on the server. The clients browser executes the
HTML code and displays the result.

where as the client side code executes at client side and
displays the result in its browser. it the client side core
consist of certain functions that are to be executed on
server then it places request to the server and the server
responses as the result in form of HTML.

Is This Answer Correct ?    25 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between session and viewstate?

509


How long should a session id be?

520


How can you debug your.net application?

550


Demonstrate Render and PreRender?

594


What is _viewstart?

499






Which validator control you use if you need to make sure the values in two different controls matched?

643


Whats the difference between registerclientscriptblock, registerclientscriptinclude and registerclientscriptresource?

582


What are directives in asp.net?

526


How to you can limit Access to Web API to Specific HTTP Verb?

659


Please brief not about xsd,xslt & xml?

542


What is difference between session and cookie?

511


How to retrieve user name in case of Window Authentication?

274


How to send a DataReader as a parameter to a remote client ?

2714


What are the three parts of an http response?

525


Should I delete cookies?

491