Your First Classic ASP Page

Last updated: August 26, 2026.

A Classic ASP page mixes HTML with server-side script processed by IIS. Save the file with an .asp extension inside an IIS application where the ASP feature is enabled.

Hello-world page

<%@ Language="VBScript" CodePage="65001" %>
<% Response.CodePage = 65001 %>
<!doctype html>
<html lang="en">
<head><meta charset="utf-8"><title>First ASP page</title></head>
<body>
  <h1><%= Server.HTMLEncode("Hello from Classic ASP") %></h1>
  <p>Server time: <%= Now() %></p>
</body>
</html>

Browse the page through http://localhost/; opening the file directly will not run ASP. Encode any value that may contain user input with Server.HTMLEncode.

admin

admin

Leave a Reply

Your email address will not be published.