Explain the differences between Server-side and Client-side
code?
Answers were Sorted based on User's Feedback
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 |
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 |
What is Cookies Less Session?
What are different methods of session maintenance in asp.net?
Can you explain what inheritance is and an example of when you might use it?
Difference between web.config and app.config?
3 Answers ITC Infotech, Jenesys Technologies,
how we Creating a Web Service
What symbol specifies the beginning of a query string?
How can we use Web API with ASP.NET Web Form?
What is different between webconfig.xml & Machineconfig.xml ?
What are the different types of proxy patterns?
How many web.config files in each solution
Which is better asp.net or php?
Which method do you invoke on the DataAdapter control to load your generated dataset with data?