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

How do we sort the data from a dataset?

574


What are the benefits of view state?

554


1.What r collections? 2.What is .pdb file? 3.Is it possible to provide access to users in master page? 4.What is dirty n Phantom Read(SQL)? 5.What r different isolation levels(SQL)? 6.How to set authentication mode in web.config file?

1782


Explain the use of resource manager class in .net.

504


How to handle errors in Web API?

626






How do you do Client-side validation in .Net?

575


What is inproc and outproc?

523


To redirect the user to another page which method do we use without performing a round trip to the client?

535


How does u get record no from 5 to 15 from a dataset of 100 records?

515


What is a web based system?

464


Can you explain why it is useful to use mvc instead of webforms? : asp.net mvc

541


Is asp.net easy to learn?

555


What is the purpose of using MVC programming pattern in ASP.NET?

557


What is a web server? What are the load limits in it?

590


What is asp net theme?

523