Opentopia Directory Encyclopedia Tools

Active Server Pages

Encyclopedia : A : AC : ACT : Active Server Pages


Active Server Pages (ASP) is Microsoft's server-side technology for dynamically-generated web pages that is marketed as an add-on to Internet Information Services (IIS).

Programming ASP websites is made easier by various objects. Each object corresponds to a group of frequently-used functionality useful for creating dynamic web pages. In ASP 2.0 there are six such built-in objects: Application, ASPError, Request, Response, Server and Session. Session, for example, is a cookie-based session object that maintains variables from page to page. Application Center Test is also available for load testing.

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.

Syntax

Here is a Hello World code example:

<%
Response.write "Hello World!"
%>
The <% %> tags are delimiters which tell ASP to treat anything contained within as ASP code and to act on it.

ASP has two types of comment syntax:

' comment -- is terminated at the first line break or ASP terminator (%>)
rem comment -- is terminated at the first line break or ASP terminator (%>)
ASP does not have a syntax for multiline comments.

Versions

ASP has gone through five major releases::

ASP.NET was originally called "ASP+" or "ASP PLUS" before the .NET moniker was created.

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.

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. [ASP Code Bank]

 


From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.

Search Titles
0123456789
ABCDEFGHIJ
KLMNOPQRST
UVWXYZ?

E-mail this article to:

Personal Message: