Complete AxonASP Reference

Everything available in the README, organized for fast implementation and confident production deployment.

Classic ASP Compatibility

AxonASP is built to be a practical drop-in replacement with modern speed and near-perfect ASP behavior.

Request

QueryString, Form, ServerVariables, Cookies, ClientCertificate.

Response

Write, Redirect, Cookies, Buffer, ContentType, headers, BinaryWrite.

Server

CreateObject, MapPath, URLEncode, HTMLEncode.

Session / Application

Session persistence and application-wide state management.

COM Object Support

ADODB

ADODB.Connection

Open, Close, Execute, BeginTrans, CommitTrans, RollbackTrans with SQLite, MySQL, PostgreSQL, SQL Server, and Access (Windows).

ADODB.Recordset

MoveNext, MovePrevious, MoveFirst, MoveLast, AddNew, Update, Delete, EOF, BOF, Fields.

ADODB.Stream

Text/binary streams, charset handling, Position/Size support.

ADOX

ADOX.Catalog

Schema operations for creating databases, tables, and indexes.

Set catalog = Server.CreateObject("ADOX.Catalog")
catalog.Create "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\db\mydb.mdb"

MSXML2

MSXML2.ServerXMLHTTP

Open, Send, SetRequestHeader, Status/ResponseText for HTTP integrations.

MSXML2.DOMDocument

Load/LoadXML/Save, XPath (SelectNodes/SelectSingleNode), full DOM manipulation.

Scripting Objects & WScript

Scripting.Dictionary / FileSystemObject / WScript.Shell

Associative storage, filesystem operations, process execution, environment expansion, and Windows registry helpers.

Custom G3 Libraries

Modern capabilities for classic code with productive APIs.

G3JSON

JSON parse/stringify, object/array creation, file loading.

G3FILES

Read/write/append/copy/move/rename/delete, list, metadata, directory creation with path security.

G3HTTP

Fetch/Request with GET/POST/PUT/DELETE/PATCH and automatic JSON handling.

G3TEMPLATE

Go-style template rendering for HTML, email, and report generation.

G3MAIL

SMTP send with manual config or standard .env config.

G3CRYPTO

UUID v4, bcrypt hashing, verify password helpers.

G3REGEXP

Pattern, IgnoreCase, Global, Multiline, Test/Execute/Replace with match metadata.

G3FILEUPLOADER

Single/multi-file upload processing, extension controls, max size, metadata.

G3ZIP

Create/open ZIP, add files/folders/text, list, extract.

G3FC

Encrypted high-performance archiver: create, extract, list, find, metadata export.

G3IMAGE

2D image drawing and rendering (PNG/JPEG outputs) through gg.

PDF_LIB (G3PDF)

FPDF 1.86 translated to Go with text, image, and HTML rendering. Aliases: G3PDF, PDF, FPDF.

G3DB

database/sql-style modern library with pooling, prepared statements, and transactions.

Set pdf = Server.CreateObject("G3PDF")
pdf.AddPage
pdf.SetFont "helvetica", "B", 16
pdf.Cell 0, 10, "Hello from AxonASP PDF", 0, 1, "L", False, ""
pdf.WriteHTML "<p><b>HTML rendering</b> is supported.</p>"
pdf.Output "I", "sample.pdf", True

Extended Custom Functions (60+)

PHP-inspired helpers prefixed with Ax to make ASP development faster and cleaner.

Array

AxArrayMerge / AxArrayContains / AxArrayMap / AxArrayFilter

Merge, search, transform, and filter arrays.

AxCount / AxExplode / AxImplode / AxArrayReverse / AxRange

Core array-size and conversion utilities.

String

AxStringReplace / AxSprintf / AxPad / AxRepeat

Text formatting and manipulation.

AxUcFirst / AxWordCount / AxNewLineToBr / AxTrim / AxStringGetCsv

Content cleanup and parsing.

Math, Types, Date, Encoding & Validation

AxCeil / AxFloor / AxMax / AxMin / AxRand / AxNumberFormat

Math and numeric formatting.

AxIsInt / AxIsFloat / AxCTypeAlpha / AxCTypeAlnum / AxEmpty / AxIsset

Type checks and validation support.

AxTime / AxDate

Date and timestamp helpers.

AxMd5 / AxSha1 / AxHash / AxBase64Encode / AxBase64Decode / AxUrlDecode

Hashing and encoding operations.

AxHtmlSpecialChars / AxStripTags / AxRgbToHex

Output safety and utility helpers.

AxFilterValidateIp / AxFilterValidateEmail

Input validation utilities.

Request & Utility

AxGetRequest / AxGetGet / AxGetPost

Request parameter aggregation.

AxGenerateGuid / AxBuildQueryString / AxVarDump / Document.Write

Debug, output and integration helpers.

Project Structure

axonasp/
├── main.go
├── asp/
├── axonaspcgi/
├── server/
├── vbscript/
├── docs/
├── www/
├── temp/session/
└── errorpages/

Core runtime in server/, parser/executor in asp/, web root in www/, and complete implementation guides in docs/.

Security & Best Practices

Pro Tip: Fast, secure, and scalable is the default direction with AxonASP when paired with nginx/Apache/IIS fronting.

Performance

Global.asa Support

Supported events: Application_OnStart, Application_OnEnd, Session_OnStart, Session_OnEnd.

Important: one application per AxonASP instance due to global.asa loading model. Run multiple instances for multiple apps.

Roadmap

Shipped: ADODB + Access, FastCGI, web.config rewrite support, custom 404 modes, scripting objects, WScript.Shell, ADOX, 60+ functions, image, ZIP, G3FC, XML.

Next targets: PDF completion, WebSocket support, Redis sessions, Docker official images, OAuth2 library, REST generator, GraphQL support, VM/compiler improvements.

Documentation, Community, License

Implementation Guides

Support

Contributing & License

Contributions are welcome through pull requests with tests and documentation updates. Project is licensed under MPL (see LICENSE).

Built with ❤️ by G3Pix — making Classic ASP modern, fast, and cross-platform.

Installation Guide Back to Home