Server-side and Client-side code

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

E

Expert

Verified

Server side code functions on the server. For this to take place page has to be submitted or posted back. Events fired through the controls are executed on the server. Client side code executes in browser of the client devoid of submitting the page.

Example: In ASP.NET for webcontrols such as asp: button the click event of the button is executed on the server therefore the event handler for the similar in a part of code-behind (server-side code). All along the server-side code events one can as well attach client side events that are executed in the client’s browser that is, JavaScript events.

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.