Generated by GPT-5-mini| Active Server Pages | |
|---|---|
| Name | Active Server Pages |
| Developer | Microsoft |
| Released | 1996 |
| Latest release version | n/a |
| Programming language | VBScript, JScript |
| Operating system | Microsoft Windows |
| Genre | Server-side scripting |
Active Server Pages is a server-side scripting environment developed by Microsoft for dynamically generated web pages. It integrates with Microsoft Internet Information Services and uses interpreted scripts embedded within HTML to produce dynamic content. ASP influenced later server-side frameworks and interoperates with COM components and ODBC data sources.
Active Server Pages provides a platform for generating HTML, XML or other text formats on the server by executing script code before sending responses to clients such as Internet Explorer, Netscape Navigator, or modern browsers. It relies on the Windows NT family and the IIS web server to handle requests, invoking script engines for VBScript and JScript and interacting with components like ADODB and custom COM objects. ASP pages typically use file extensions .asp and embed script blocks to access server-side objects such as Request, Response, Server, Session, and Application. Major adopters included enterprises using Microsoft SQL Server, Oracle Database, and mid-1990s intranet deployments.
ASP was introduced by Microsoft in 1996 as part of the first public releases of Internet Information Services and later bundled with Windows NT 4.0 Option Pack. Its development paralleled competing technologies such as PHP, CGI, and JavaServer Pages and responded to demands from organizations using Microsoft Exchange Server and Visual Basic. Key milestones include integration with COM and OLE Automation to leverage existing Microsoft Office and Visual Basic component ecosystems, and later influence on the design of ASP.NET introduced with Microsoft .NET Framework in the early 2000s. The evolution of browser standards (e.g., HTML 4.01, XML 1.0) and database connectivity protocols like ODBC shaped ASP's adoption across corporate, educational, and government sites.
The ASP architecture centers on the interaction between the IIS request pipeline, the ASP scripting engine, and registered COM components. Core server objects include Request, Response, Server, Session, and Application, which manage client input, output buffering, virtual path mapping, per-user state, and global state respectively. Data access commonly involves the ADO object model communicating with Microsoft SQL Server, Oracle Database, or MySQL via ODBC or native drivers. ASP supports include files and server-side includes to modularize presentation, and can call external components built with Visual C++, Delphi, or Visual Basic 6. Integration points include authentication schemes supported by IIS and interoperation with Active Directory for directory services and credential management.
ASP primarily used VBScript as its default scripting language and supported JScript (Microsoft's implementation of ECMAScript) for developers familiar with JavaScript. Scripts are embedded within HTML using <% ... %> delimiters and can access runtime objects and COM components. Developers leveraged event-driven paradigms from Visual Basic and procedural patterns common to Perl and Python server-side scripting at the time. Tooling included development within Visual InterDev and integration with Visual Studio for deployment to IIS. The language environment made it straightforward to interact with data sources like Microsoft Access and SQL Server and with external systems via SOAP-based gateways or custom COM wrappers.
ASP deployments required careful configuration of IIS permissions, file system ACLs, and component security to mitigate risks such as unauthorized file access, code injection, and elevation of privilege. Common vulnerabilities involved improperly validated input leading to XSS and SQL injection against back-end systems like SQL Server or Oracle Database. Secure coding practices included parameterized queries using ADO Command objects, validation using server-side logic, and principle of least privilege by running application pools under restricted accounts rather than administrative credentials used by Windows NT services. Integration with Active Directory and SSL/TLS through Schannel helped protect authentication and data in transit.
Performance of ASP depended on script efficiency, component design, and IIS configuration. Bottlenecks often arose from synchronous COM components performing blocking I/O, inefficient database queries against Microsoft SQL Server or Oracle Database, and excessive use of Session state. Scalability strategies included connection pooling, stateless design patterns, caching at the server or reverse-proxy layers, and distributing load using network load balancing features in Windows Server or hardware load balancers from vendors like F5 Networks. Enterprises scaled ASP applications by optimizing ADO usage, offloading static assets to Content Delivery Networks, and refactoring heavy logic into compiled COM components or moving to multi-tier architectures.
Although superseded functionally by ASP.NET and modern frameworks such as Node.js and Django, ASP remains in legacy deployments requiring maintenance and migration planning. Organizations migrated ASP applications to ASP.NET using rewrite or rewrite-and-wrap approaches, or replaced them with services built on Microsoft .NET, Java EE, or cloud-native platforms like Microsoft Azure and Amazon Web Services. Compatibility concerns include mapping Session semantics, COM interop, and ADO to newer data access technologies such as ADO.NET and ORMs used with Entity Framework. Migration options range from incremental coexistence—hosting ASP pages on IIS alongside new applications—to full rewrites adopting microservices patterns influenced by Docker and Kubernetes deployments.
Category:Microsoft software