I'm studying ASP.NET through a book called Professional: ASP.NET 4.5 in C # and VB and at various times the author talks about client-side code and server-side , I would like to know the difference.
I'm studying ASP.NET through a book called Professional: ASP.NET 4.5 in C # and VB and at various times the author talks about client-side code and server-side , I would like to know the difference.
Server-side refers to the server side (your application server, eg IIS ) . Client-side refers to the client side (eg a web-browser).
The interaction works as follows: Server ← → Client ← → User
Example:
And so on ...
The difference is simply where the code will run: on the server where ASP.NET is installed ( server-side ) or on the browser from which the system will be accessed -side ).
Although it is possible to develop an application / site exclusively using HTML and CSS on the client side (generating pages dynamically on the server, using only links and / or forms for data entry), many It is sometimes desirable for certain code to be executed on the user's browser, for example for validation purposes or usability improvement. In this case, the relevant snippet must be written in - or converted to - JavaScript, which is the only language universally accepted by browsers. Other forms of client code could be plugins like Flash or Java.
Remember that the user agent does not necessarily have to be a browser - any application that implements the client side of the HTTP protocol can interact with the server application (without necessarily supporting JavaScript).
Client-side is the one that runs on the client side (eg Javascript), ie in the user's browser, Server-side runs on the server (eg PHP, JAVA, .NET ...)
Client-side = runs client-side, eg Javascript.
Server-side = runs on the server, eg PHP, C #, etc.