Active Server Pages

From Wikipedia, the free encyclopedia

(Redirected from Active Server Page)
Jump to: navigation, search

Active Server Pages (ASP) is Microsoft's server-side script engine for dynamically-generated web pages. It 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.

Most ASP pages are written in VBScript, but any other Active Scripting engine can be selected instead by using the @Language directive or the

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.[1] 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.

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

  1. <% Response.Write "Hello World!" %>

Or

  1. <%= "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

  1. <%
  2.         Set oConn = Server.CreateObject("ADODB.Connection")
  3.         oConn.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("DB.mdb")
  4.         Set rsUsers = Server.CreateObject("ADODB.Recordset")
  5.         rsUsers.Open "SELECT * FROM Users", oConn
  6. %>

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.

  1. ^ 4 Guys From Rolla's A Look at ASP 3.0
Advanced Search
Included Web Search Engines


Safe Search

close

Top Matching Results

Occasionally Search.com will highlight specialized results that are based on the context of your query. Examples of specialized results include specific links to news, images, or video.

Top Matching Results may highlight information from other Search.com pages, content from the CNET Network of sites, or third party content. The listings are based purely on relevance. Search.com does not receive payment for listings in this section but our partners that provide this data may get paid for listing these products.

Sponsored Links

This section contains paid listings which have been purchased by companies that want to have their sites appear for specific search terms and related content. These listings are administered, sorted and maintained by a third party and are not endorsed by Search.com.

Search Results

Search.com sends your search query to several search engines at one time and integrates the results into one list which has been sorted by relevance using Search.com's proprietary algorithm. You can customize the list of search engines included in your metasearch from the preferences.

The search engines that are used in your metasearch may allow companies to pay to have their Web sites included within the results. To view the Paid Inclusion policy for a specific search engine, please visit their Web site. Search.com does not accept payment or share revenue with any search engine partner for listings in this section.