Last updated: August 26, 2026.
Classic ASP runs VBScript on IIS to create dynamic HTTP responses. It can read request data, manage cookies and sessions, call COM components, and work with databases through ADO.
Return dynamic HTML
<%@ Language="VBScript" CodePage="65001" %>
<%
Dim name
name = Trim(Request.QueryString("name"))
If Len(name) = 0 Then name = "visitor"
%>
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>Greeting</title>
<h1>Hello, <%= Server.HTMLEncode(name) %></h1>
</html>Typical server-side tasks
| Task | ASP feature |
|---|---|
| Read forms, query strings, cookies, and headers | Request object |
| Write HTML, headers, cookies, and redirects | Response object |
| Encode text, map paths, and create components | Server object |
| Store per-user state | Session object |
| Query relational databases | ADO connections and commands |
Validate all input, HTML-encode untrusted output, parameterize database commands, and keep secrets out of source files under the public web root.