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 built-in 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.
<% 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.
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.
This article is licensed under the GNU Free Documentation License.
It uses material from the
"Active Server Pages".
Home Page • arts • business • computers • games • health • hospitals • home • kids & teens • news • physicians • recreation• reference • regional • science • shopping • society • sports • world