Active Server Pages Article Index for
Active
Website Links For
Active Server Pages
 

Information About

Active Server Pages




Programming ASP -based Session object that maintains Variable s from page to page.

Most ASP pages are written in VBScript , but any other Active Scripting engine can be selected instead by using the @Language directive or the <script language="language" runat="server"> syntax. JScript (Microsoft's implementation of ECMAScript ) is the other language that is usually available. PerlScript (a derivative of Perl ) and others are available as third-party installable Active Scripting engines.

InstantASP and ChiliASP are technologies that run ASP without Windows Operating System. There are large open source communities on the WWW , such as ASPNuke , which produce ASP scripts, components and applications to be used for free under certain license terms.


VERSIONS

ASP has gone through six major releases:

  • ASP version 1.0 (distributed with IIS 3.0) in December 1996,

  • ASP version 2.0 (distributed with IIS 4.0) in September 1997,

  • ASP version 3.0 (distributed with IIS 5.0) in November 2000,

  • ASP.NET version 1.0 (part of the Microsoft .NET Platform ) in January 2002
    (the pre-.NET versions are currently referred to as "classic" ASP)

  • ASP.NET version 1.1 in April 2003

  • ASP.NET version 2.0 (released on November 7 , 2005 ).


ASP.NET was originally called "ASP+" or "ASP PLUS" before the .NET name was introduced.

The move from ASP 2.0 to ASP 3.0 was a relatively modest one. Some of the most important additions were the Server.Transfer and the Server.Execute methods, as well as the ASPError object .4 Guys From Rolla's A Look at ASP 3.0 Microsoft's What's New in IIS 5.0 lists some additional changes.

The move from ASP 3.0 to ASP.NET was a significant change. ASP.NET introduced the ability to replace in-HTML scripting with full-fledged support for .NET languages such as Visual Basic .NET and C# . In-page scripting can still be used (and is fully supported), but now pages can use VB.NET and C# classes to generate pages instead of code in HTML pages.

There are solutions to run "Classic ASP" sites as standalone applications, such as ASPexplore, a software package that runs Microsoft Active Server Pages offline.


SAMPLE USAGE

Several scripting languages may be used in ASP. However, the default scripting language (in classic ASP) is VBScript :






<% Response.Write("Hello World!") %>






Or






<%= "Hello World!" %>






The examples above write "Hello World!" into the body of an HTML document.

Here's how to connect to an MS Access Database

<%
Set oConn = Server.CreateObject("ADODB.Connection")
  • .mdb)}; DBQ=" & Server.MapPath("DB.mdb")

  • Set rsUsers = Server.CreateObject("ADODB.Recordset")

  • FROM Users", oConn

  • %>




APACHE::ASP

Apache::ASP provides an Active Server Pages port to the Apache Web Server with Perl scripting only, and enables developing of dynamic web applications with session management and embedded Perl code.


SEE ALSO



EXTERNAL LINKS



REFERENCES