Learn ASP
ASP (Active Server Pages) is Microsoft's original technology for writing dynamic, server-side web pages that execute on IIS before any HTML reaches the browser.
What Is Classic ASP?
Active Server Pages, often called "classic ASP" to distinguish it from its successor ASP.NET, is a server-side scripting environment built into Microsoft's Internet Information Services (IIS) web server. An ASP file is saved with the .asp extension and can freely mix ordinary HTML markup with script blocks delimited by <% and %>. When a browser requests an .asp file, IIS hands it to the ASP engine, which runs any script it finds, discards the script tags, and sends the resulting plain HTML down to the browser. The visitor never sees a line of VBScript — only the HTML it produced.
- Files are saved with the .asp extension.
- Code runs on the server (IIS), never in the browser.
- HTML and script blocks (<% %>) can be freely mixed in the same file.
- The default scripting language is VBScript, though JScript is also supported.
- Because processing happens before the page reaches the client, ASP can read files, query databases, and personalize output per request.
Example
<html>
<body>
<h1>My First ASP Page</h1>
<%
Response.Write("Hello, World!")
%>
</body>
</html>Why Developers Used ASP
Before ASP, most web pages were static HTML files that looked the same for every visitor. ASP made it possible to generate a page's content on the fly: greet a logged-in user by name, pull rows from a database with ADO, remember information across requests with Session variables, or assemble an entire page layout from a template. Because ASP shipped as a built-in part of IIS, any Windows server could host dynamic sites without installing extra software — a big reason it became the standard for corporate intranets and early e-commerce sites in the late 1990s and 2000s.
How a Request Flows Through ASP
- The browser requests a page, e.g. http://example.com/default.asp
- IIS sees the .asp extension and forwards the file to the ASP processing engine (asp.dll)
- The engine reads the file top to bottom, executing everything inside <% %> blocks
- Any HTML outside the script blocks is passed through untouched
- Response.Write calls and other output are inserted exactly where they appear in the file
- The finished, pure-HTML result is sent back to the browser as the HTTP response
Example
<%
Dim currentTime
currentTime = Now()
%>
<html>
<body>
<p>This page was generated on the server at: <%= currentTime %></p>
</body>
</html>Exercise: ASP Introduction
What does ASP stand for in classic Microsoft ASP?
Frequently Asked Questions
- What is ASP used for?
- ASP builds server-side web applications on Microsoft's stack: pages that talk to a database, handle sign-in, and return HTML or JSON. It is common in corporate and government systems, especially where the rest of the infrastructure is already Windows and SQL Server.
- Do I need to learn C# before ASP?
- Yes, in practice. Modern ASP.NET is written in C#, so the framework only makes sense once the language does. Learn C# fundamentals first: types, classes, collections and async. The framework parts then read as an application of what you already know.
- Is ASP still worth learning?
- Yes, if enterprise work interests you. Large organisations run huge ASP.NET estates and hire steadily to maintain and extend them. It is far less common in startups, where Node.js, Python and Go dominate.