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

If 200 is for all successful operation then why do we have 201 response codes?

0 Answers  


What are the built-in objects in asp.net?

0 Answers  


what is machine key error in asp.net? how to solve it?

1 Answers  


what is state management?

2 Answers  


what is the requirement that .Net web services can access the java application?

6 Answers   iSoft,






One of the properties of the Web Part has an incorrect format. Windows SharePoint Services cannot deserialize the Web Part. Check the format of the properties and try again. - this error is occured in Sharepoint 2007 while deploy the web part

1 Answers   WebInfo,


what is the difference b/w .net 1.1 and 2.0 ?

2 Answers   Polaris,


Difference between ASP & ASP.NET Session State

1 Answers   Cognizant, Wipro,


What are the advantages and limitations of query string?

0 Answers  


What is an iHTTPModule, and explain its implementation with its limitations?

1 Answers   Siebel,


If I am developing an application that must accomodate multiple security levels though secure login and my asp.net web application is spanned across three web-servers (using round-robin load balancing). What would be the best approach to maintain login-in state for the users?

0 Answers  


what is state management,what is the purpose of it,how it will be implemented in real time?

2 Answers  


Categories