Explain the differences between Server-side and Client-side
code?
Answers were Sorted based on User's Feedback
Answer / srujana
Server-side code runs on the server. Client-side code runs
in the clients? browser.
Is This Answer Correct ? | 84 Yes | 5 No |
Server side validation can be done on server side controls
using server controls.
But Client side validation can be done at browser.
The control validation can be done at client browser instead
of server side validation.Because its additional overhead to
the server.
For example,Mandatatory fields checking.It can be done at
client browser.No need at server side.
But the login and password must be validate at server side.
The client side validation can be done using the Javascript
or vb script.
Is This Answer Correct ? | 53 Yes | 7 No |
Answer / 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 |
Answer / satya
Control or object created by browser is called client side
control
control or object created by server[web server] is called
server side
control
Is This Answer Correct ? | 18 Yes | 8 No |
Answer / ajay
server side code executes on server side while client side
code executes on client side
Is This Answer Correct ? | 10 Yes | 1 No |
Server side code executes on the server.Client side Code
Executes on the client Browser.
Is This Answer Correct ? | 9 Yes | 2 No |
Answer / sateesh kumar
Server-side code executes at server-side like asp.net server
controls and server validation controls
client-side means all the code will be executed by web
browser like all the validation will be executes by browser
using javascript.
only the differance comes in performance
1.if u place a RegularExpressionValidator it results a
request and obviously server has to send response.
2.only the advantage with server-side is,no need of writing
javascript statements and no need to bather from malicious
attacks on the source code.
Is This Answer Correct ? | 6 Yes | 3 No |
Answer / parth chowdhury
Server side validation can be done in XML or in HTML itself
While, Client side validation should be done by using
Javascript or Jquery but it should be processed before
submitting the form.
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / manisha
Client-side is faster than server-side as the networking
time from client to server is saved
server-side is done on the server. Then the server converts
the data into an html page and sends to the browser.
server-side is more secure as the user cannot see the code
even he does a view-source.
________________________________________
Client side validation is processed the client side before
submitting the form. The advantage of using the client side
validation is it reduces the netork trafiic since the
validation is processed in the client machine itself. Eg
email isnumeric isdate etc.
Server side validation is processed in the server. Some data
cannot be validated in the client side and it has to be
validated in the server side. Eg Date between the two dates
in the database.
Is This Answer Correct ? | 3 Yes | 2 No |
Answer / sandeep kumar
Client side validation validate on the browser but server side validation validate on the server.
Client side validation is faster than server side validation.
Is This Answer Correct ? | 3 Yes | 3 No |
About the Usage of htmlencode and urlencode ?
which method marks a config file section for encryption?
How to retrieve user name in case of Window Authentication?
Is it possible to write code in many languages in one asp.net project?
Explain the advantages of caching?
How many types of session state management options available in asp.net?
Tell me the code snippet to show how we can return 404 errors from HttpError?
what is the uses Of Global.asax
What is caching in asp.net?
How do I publish my asp.net application to my isp's web server?
What is inproc and outproc?
I have a method written in WebForm (means .aspx page) & now I want to call this method in WebUserControl (means .ascx page) what should I have to do?