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

Answer Posted / sudhanshu

Server side code executes on the server.For this to occur page has to be submitted or posted back.Events fired by the controls are executed on the server.Client side code executes in the browser of the client without submitting the page.

e.g. In ASP.NET for webcontrols like asp:button the click event of the button is executed on the server hence the event handler for the same in a part of the code-behind (server-side code). Along the server-side code events one can also attach client side events which are executed in the clients browser i.e. javascript events.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are web server controls in asp.net?

556


What are the differences between the response.write() and response.output.write()?

537


Can I tap into other windows livetm services?

570


What is the request flow used for asp.net mvc framework? : asp.net mvc

533


I am trying to implement sorting facility from client side code in GridView Control. So how can I fill up an Array inside client side code (using JavaScript), i want to assign my DataSet object declared and filled up on Server side(in code behind) to the array (on client side)

1493






Is session server side or client side?

531


What are the main differences between asp and asp.net?

524


What are the benefits of Razor View?

540


Disable Mouse right click on web page in asp.net?

584


What are the differences between clr & cts?

543


What’s difference between “optimistic” and “pessimistic” locking?

577


Define cookie.

568


Why do we need Sessions?

580


What does mean by a neutral culture?

605


What are the advantages of the code-behind feature?

542