Explain the difference between client-side script and server-side script. ?
Krishna Rajput Singh
client side script perform on the browser and the server-side script performs on the web server
Differences between Client-side and Server-side ScriptingClient-side EnvironmentThe client-side environment used to run scripts is usually a browser. The processing takes place on the end users computer. The source code is transferred from the web server to the users computer over the internet and run directly in the browser.The scripting language needs to be enabled on the client computer. Sometimes if a user is conscious of security risks they may switch the scripting facility off. When this is the case a message usually pops up to alert the user when script is attempting to run.Server-side EnvironmentThe server-side environment that runs a scripting language is a web server. A user's request is fulfilled by running a script directly on the web server to generate dynamic HTML pages. This HTML is then sent to the client browser. It is usually used to provide interactive web sites that interface to databases or other data stores on the server. This is different from client-side scripting where scripts are run by the viewing web browser, usually in JavaScript. The primary advantage to server-side scripting is the ability to highly customize the response based on the user's requirements, access rights, or queries into data stores.
Client side development is done almost exclusively in JavaScript. This is, of course, in addition to basic HTML and CSS code. The reason JavaScript is called a client side language is because it runs scripts on your computer after you've loaded a web page. A server side language runs its scripts before the HTML is loaded, not after. There are a range of server side languages in use on the web today. PHP is one of the most popular, as well as Ruby on Rails, ASP.NET and many others. They are called server side languages because their scripts are run not on your computer, but on the server which hosts the website and sends down the HTML code.
Client-side script is taking action on the user's (the client's) computer. it is used to provide us functionality without needing access to a web server. Server-side script means that the action takes place on a web server. As to get data from Database and use in show information then need to Server side script.
Client Side controls are only javascript and Jquery It does not go code behind *Control state *View State *Cookies *Hidden fields Server side controls are Application and Session
Client Side Script does not goes to code behind but server side script going to code behind so client side script load fast compare to server side script
Client Side Environment The script runs on client browser. It is quick since there is no involvement of server. Examples of client side scripting are using javascript, jQuery etc. Server Side Environment The script is executed on server. Action /Execution is taking place on server. Languages like C# , VB.net and Java are executed on server.
This HTML is then sent to the client browser. It is usually used to provide interactive web sites that interface to databases or other data stores on the server. This is different from client-side scripting where scripts are run by the viewing web browser, usually in JavaScript.
Server Side Scripting uses high level languages like c#,vb.net,java,php etc.. where as in client side scripting using HTML,JavaScript, css etc
Server side script executed at server where as Client side script executed at browser.
http://programmers.stackexchange.com/questions/171203/what-are-the-difference-between-server-side-and-client-side-programming
client-side script can be used to enhance the functionality and user experience. For example, it can be used to provide simple mouse over image effects, animations, and form field validations. server-side scripts can also be used to enhance the functionality of a site. Some examples of features that can be included in a site by using server-side scripts include forums, polls, guest books, and searches.