Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Active Server Pages

From Wikipedia, the free encyclopedia
Server-side java script engine
This article has multiple issues. Please helpimprove it or discuss these issues on thetalk page.(Learn how and when to remove these messages)
This articlerelies excessively onreferences toprimary sources. Please improve this article by addingsecondary or tertiary sources.
Find sources: "Active Server Pages" – news ·newspapers ·books ·scholar ·JSTOR
(February 2015) (Learn how and when to remove this message)
This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Active Server Pages" – news ·newspapers ·books ·scholar ·JSTOR
(February 2015) (Learn how and when to remove this message)
(Learn how and when to remove this message)
Active Server Pages (ASP)
DeveloperMicrosoft
Stable release
3.0 / February 17, 2000; 25 years ago (2000-02-17)
TypeWeb application framework
LicenseProprietary software
Websitewww.asp.net Edit this on Wikidata
Active Server Pages
Filename extension
.asp
Developed byMicrosoft

Active Server Pages (ASP) isMicrosoft's firstserver-sidescripting language and engine fordynamic web pages.

It was first released in December 1996, before being superseded in January 2002 byASP.NET.

History

[edit]

Initially released as an add-on toInternet Information Services (IIS) via theWindows NT 4.0 Option Pack (1996), it is included as a component ofWindows Server (since the initial release ofWindows 2000 Server). There have been three versions of ASP, each introduced with different versions of IIS:

  • ASP 1.0 was released in December 1996 as part of IIS 3.0
  • ASP 2.0 was released in September 1997 as part of IIS 4.0
  • ASP 3.0 was released in November 2000 as part of IIS 5.0

ASP 2.0 provides six built-inobjects: Application, ASPError, Request, Response, Server, and Session. ASession object, for example, represents asession that maintains the state ofvariables from page to page.[1] TheActive Scripting engine's support of theComponent Object Model enables ASPwebsites to access functionality in compiledlibraries such asdynamic-link libraries.

ASP 3.0 does not differ greatly from ASP 2.0 but it does offer some additional enhancements such as Server.Transfer method, Server.Execute method, and an enhanced ASPError object. ASP 3.0 also enables buffering by default and optimized the engine for better performance.

ASP was supported until 14 January 2020 onWindows 7.[2] The use of ASP pages will be supported onWindows 8 for a minimum of 10 years from the Windows 8 release date.[2] ASP is supported in all available versions of IIS as of 2025.[3]

Architecture

[edit]

ASP usesscripting on the server to generate content that is sent to the client's web browser via HTTP response. The ASP interpreter reads and executes all script code between <% and %> tags, the result of which is content generation. These scripts were written usingVBScript,JScript, orPerlScript. The@Language directive, the<script language="language" runat="server" /> syntax or server configuration can be used to select the language. In the example below, Response.Write Now() is in anHTML page; it would be dynamically replaced by the current time of the server.

Server sideClient Side
Theserver'scurrenttime:<%Response.WriteNow()%>
The server's current time:8/11/2015 6:24:45 PM

Web pages with the.aspfilename extension use ASP, although some web sites disguise their choice of scripting language for security purposes by using the more common.htm or.html extensions. Pages with the.aspx extension use compiledASP.NET; however, ASP.NET pages may still include some ASP scripting. The introduction of ASP.NET led to use of the termClassic ASP for the original technology.

Sun Java System ASP (formerly ChiliSoft ASP) was a popular and reportedly complete emulator,[4] but it has been discontinued.

The Session object

[edit]

Stores variables accessible only to a single visitor, which are local variables.

<%IfLen(Request.QueryString("name"))>0ThenSession("name")=Request.QueryString("name")EndIfResponse.Write"Welcome "&Server.HTMLEncode(Session("name"))&"!"%>

The session object is file based and multiple concurrent read and/or write requests will be blocked and processed in turn.

See also

[edit]

References

[edit]
  1. ^The session data is kept server-side, the ID is saved as aHTTP Cookie. Source:ASP and Web Session Management, Microsoft
  2. ^ab"Active Server Pages (ASP) support in Windows".Support (4.0 ed.).Microsoft. 30 January 2012. Retrieved11 August 2015.
  3. ^Source:[1], Microsoft
  4. ^Weissinger, Keyton (6 October 2009).ASP in a Nutshell: A Desktop Quick Reference. O'Reilly Media, Inc.ISBN 978-1-4493-7959-9. Retrieved9 October 2013.

External links

[edit]
Wikibooks has a book on the topic of:Active Server Pages
Protocols
Server APIs
Apache modules
Topics
Browser APIs
Web APIs
WHATWG
W3C
Khronos
Others
Topics
Related topics
Retrieved from "https://en.wikipedia.org/w/index.php?title=Active_Server_Pages&oldid=1311153444"
Category:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp