This article explains client-side and server-side programming languages.
Client-side vs Server-side Programming LanguagesBasic BackgroundWeb development is all about communication and data exchange. This communication takes place via two parties over the HTTP protocol.These parties are:ServerThe Server is responsible for serving the web pages depending on the client/end user requirement. It can be either static or dynamic.ClientA client is a party that requests pages from the server and displays them to the end user. In general a client program is a web browser.Example | WorkingWe can explain this entire mechanism using the following:
ProgrammingProgramming | Server-sideServer-side programming can be explained as:It is the general name for the kind of program that runs directly on the server.Or we can say that server-side programming must deal with dynamic content. It runs on the server. Most web pages are not static since they deal with searching databases.Server-side | Uses
Server-side | Languages ExampleThere are several languages that can be used for server-side programming:
Server-side | Ref. Example
// This is a sample C# code.
Using system
// namespace
class ServerSide
{
public static void Main()
System.Console.WriteLine(“Hello C# Corner”);
// printing a line
}
Programming | Client-sideSimilarly to server-side programming, client-side programming is also the name of the entire program that runs on the client.Or we can say that client-side programming mostly deals with the user interface with which the user interacts in the web. It is mostly a browser, in the user's machine, that runs the code and is mainly done in any scripting language like JavaScript (or we can use Flash instead of JavaScript or VNScript).Client-side | Uses
Client-side | Languages ExampleThere are many client-side scripting languages too.
(Some other languages also can be used on the basis of the modeling/designing /graphics/animations and for extra functionalities.)Client-side | Ref. Example
// sample HTML code
<html>
<head>
<title>Client Side </title>
</head>
<body>
<h1>
Hello C# Corner
</h1>
</body>
</html>
Pro WPF: Windows Presentation Foundation in .NET 3.0