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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / bhim bharti

Server side scripting means that all the script will be executed by the server and interpreted as needed. ASP doesn't have some of the functionality like sockets, uploading, etc. For these you have to make a custom components usually in VB or VC++. Client side scripting means that the script will be executed immediately in the browser such as form field validation, clock, email validation, etc. Client side scripting is usually done in VBScript or JavaScript. Download time, browser compatibility, and visible code - since JavaScript and VBScript code is included in the HTML page, then anyone can see the code by viewing the page source. Also a possible security hazards for the client computer.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

Explain different authentication modes in asp.net?

0 Answers  


What is .Net3.0 and .Net3.5? Describe something about that Features..

1 Answers  


what is AutoEventWireUp and what is the use of This property explain in details?

0 Answers   ITC Infotech,


If i have 1000 records in dataset, how to do paging?

2 Answers   Mind Tree,


• What are HttpHandlers? • What are HttpModules?

2 Answers  


How do I debug an ASP.NET application that wasn't written with Visual Studio.NET and that doesn't use code-behind?

1 Answers  


Which of the following .NET framework supports Web API?

0 Answers  


What is an example of an application service provider?

0 Answers  


what is diference between the .net1.0 & .net2.0 ?

3 Answers   EMax,


What are server-side comments in ASP.NET?

0 Answers   Winsol Solutions,


Explain about Application and Session Events ?

0 Answers  


Can you explain autopostback?

0 Answers  


Categories