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 is the difference between client-side and server-side validations in webpages?

766


Elaborate differentiation between Cache and Application?

716


Write a code for sending an email from asp.net application.

756


Why is the standalone environment only useful during the development process?

1585


What are the asp.net server side objects?

701


What is the use of express session?

730


Can we store object in viewstate?

736


How does exception management works in ASP.NET?

827


What are the security types in ASP/ASP.NET? Different Authentication modes?

763


What is cross page posting? How is it done?

714


Which namespace is used by ado.net?

731


What are the event handlers that we can have in global.asax file?

706


What is the maximum number of classes that can be contained in one dll file?

931


Differentiate the session object and application object?

734


How to implement Authentication and Authorization?

756