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

Explain what is the procedure to create the environment for asp.net? : asp.net mvc

763


How do cookies work? Give an example of their abuse.

728


What is cache in asp net?

720


How can you handle errors in Web API?

792


What is the difference between stored procedure vs function?

758


What is the difference between system.stringbuilder and system.string

451


Just by seeing the signature of the bean how can you specify whether it is a stateful or stateless session bean?

728


What is fulltrust?

759


List the types of authentication supported by asp.net?

708


What is razor? : asp.net mvc

743


What is the extension of master page in asp.net?

733


What is the difference between session object and application object?

787


What is protected configuration?

818


Explain difference between friend and protected friend?

711


What is the biggest disadvantage of “Other Return Types” in Web API?

1136