HOME WEB NEWS IMAGES CLASSIFIEDS YELLOW PAGESPOLLS - SURVEYS WIKI COUNTRIES PHOTOS US UK INDIA
Avoo.com provides meta search results from various sources

Active_server_pages


Google



2

Active Server Pages (ASP) is Microsoft\'s first server-side script engine for dynamically-generated web pages. It was initially marketed as an add-on to Internet Information Services (IIS) via the Windows NT 4.0 Option Pack, but has been included as a free component of Windows Server since the initial release of Windows 2000 Server. 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. Web pages with the ".asp" or ".aspx" extensions use ASP, although some Web sites disguise their choice of scripting language for security purposes.

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

History

ASP was one of the first web application development environments that integrated web application execution directly into the web server. This was done in order to achieve high performance compared to calling external executable programs or CGI scripts which was the most popular method for writing web applications at the time it was introduced. Today there are additional platforms for web application development that are more common on other operating systems. Both JavaServer Pages and PHP are more commonly found on webservers running non-Microsoft operating systems, with PHP currently being the most common between the two. Also of note is ColdFusion, a popular Java technology running on several platforms including Microsoft servers as well as other platforms.

InstantASP and ChilisoftASP are technologies that run ASP on platforms other than the Microsoft Windows Operating System. ChilisoftASP was purchased by Sun Microsystems and later renamed "Sun ONE Active Server Pages", then later renamed to "Sun Java System Active Server Pages". It appears that InstantASP is no longer available. There are large open source communities on the internet, 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 version 3.5 (released in November 2007)

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

The move from ASP 2.0 to ASP 3.0 was a relatively modest one. One of the most important additions was 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 in a simpler format

<%= "Hello World!" %>

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

Here\'s how to connect to a MS Access Database <% Set oConn = Server.CreateObject("ADODB.Connection") oConn.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("DB.mdb") Set rsUsers = Server.CreateObject("ADODB.Recordset") rsUsers.Open "SELECT * FROM Users", oConn %>

All About ASP dot net

See also

References

External links

This article is licensed under the GNU Free Documentation License. It uses material from Wikipedia


Advertise with Us | Search Marketing | Help | Suggest a Site | Privacy Policy
© 2008 www.avoo.com. All rights reserved.