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
How asynchronous call can be implemented using delegates?
What is the concepts of globalization and localization in .net?
What is the use of web.config and machine.config files?
How do we implement bundling in MVC?
List of words of preprocessor in .net?
Distinguish between Server-side and Client-side code with its functionality?
What is use of Master Page in ASP.NET web pages?
What are the various types of validation controls provided by asp.net?
Explain code snippet to register exception filters from controller?
How does http session work?
Explain about consistent programming model in the .NET framework?
Which method has beenintroduced in asp.net 4.0 to redirect a page permanently?
Is a dll file an executable?
Can viewstate be accessed in another page?
What is application variable in asp.net?