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

How does asp.net page work?

616


Can I tap into other windows livetm services?

651


How to add DateTime Control in normal DataGrid Server Control?

690


How many languages are supported by .NET at present time?

392


What is x xss protection?

646






Where is asp.net view state stored?

606


What is Cookies Less Session?

701


code for "For every 5days system has to create 1text file with the corresponding date and it has to store in c-drive" by using web applications

1494


Why cyclomatic complexity is important?

646


Explain the significance of routing? : asp.net mvc

645


if i want to give an alert message like "try after sometime" to a web page which is being seen by other person.if a web page is not seen by anyone then it should display otherwise it show a display a message stating that other person is viewing so try after some time........how can i implement this.

1928


What is the difference between login controls and forms authentication?

630


What is simple data binding?

625


Define data caching?

620


What is loop in asp.net?

689