Active Server Pages: Difference between revisions
imported>SchlurcherBot m Bot: http → https |
imported>Nubzor m Reverted edits by 2803:9800:9997:8B96:5317:8A67:8BB3:C145 (talk) (HG) (3.4.13) |
||
| Line 47: | Line 47: | ||
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 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 on [[Windows 7]].<ref name=":0">{{cite web|title=Active Server Pages (ASP) support in Windows|url=https://support.microsoft.com/en-us/kb/2669020|website=Support|publisher=[[Microsoft]]|access-date=11 August 2015|date=30 January 2012|edition=4.0}}</ref> The use of ASP pages will be supported on [[Windows 8]] for a minimum of 10 years from the Windows 8 release date.<ref name=":0" /> ASP is supported in all available versions of IIS as of | ASP was supported until 14 January 2020 on [[Windows 7]].<ref name=":0">{{cite web|title=Active Server Pages (ASP) support in Windows|url=https://support.microsoft.com/en-us/kb/2669020|website=Support|publisher=[[Microsoft]]|access-date=11 August 2015|date=30 January 2012|edition=4.0}}</ref> The use of ASP pages will be supported on [[Windows 8]] for a minimum of 10 years from the Windows 8 release date.<ref name=":0" /> ASP is supported in all available versions of IIS as of 2025.<ref>Source: [https://support.microsoft.com/en-gb/help/2669020/active-server-pages-asp-support-in-windows], Microsoft</ref> | ||
== Architecture == | == Architecture == | ||
| Line 66: | Line 66: | ||
Sun Java System ASP (formerly ChiliSoft ASP) was a popular and reportedly complete emulator,<ref name="Weissinger2009">{{cite book|last=Weissinger|first=Keyton |title=ASP in a Nutshell: A Desktop Quick Reference|url=https://books.google.com/books?id=tUHeRwhGKcgC|access-date=9 October 2013|date=6 October 2009|publisher=O'Reilly Media, Inc.|isbn=978-1-4493-7959-9}}</ref> but it has been discontinued. | Sun Java System ASP (formerly ChiliSoft ASP) was a popular and reportedly complete emulator,<ref name="Weissinger2009">{{cite book|last=Weissinger|first=Keyton |title=ASP in a Nutshell: A Desktop Quick Reference|url=https://books.google.com/books?id=tUHeRwhGKcgC|access-date=9 October 2013|date=6 October 2009|publisher=O'Reilly Media, Inc.|isbn=978-1-4493-7959-9}}</ref> but it has been discontinued. | ||
===The Session object=== | ===The Session object=== | ||
| Line 109: | Line 81: | ||
The session object is file based and multiple concurrent read and/or write requests will be blocked and processed in turn. | The session object is file based and multiple concurrent read and/or write requests will be blocked and processed in turn. | ||
==See also== | ==See also== | ||
Latest revision as of 19:01, 13 September 2025
Template:Short description Template:Multiple issues Script error: No such module "Infobox".Template:Template otherScript error: No such module "Check for unknown parameters".Template:Main other Script error: No such module "Infobox".Template:Template otherScript error: No such module "Check for unknown parameters". Active Server Pages (ASP) is Microsoft's first server-side scripting language and engine for dynamic web pages.
It was first released in December 1996, before being superseded in January 2002 by ASP.NET.
History
Initially released as an add-on to Internet Information Services (IIS) via the Windows NT 4.0 Option Pack (1996), it is included as a component of Windows Server (since the initial release of Windows 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-in objects: Application, ASPError, Request, Response, Server, and Session. A Session object, for example, represents a session that maintains the state of variables from page to page.[1] The Active Scripting engine's support of the Component Object Model enables ASP websites to access functionality in compiled libraries such as dynamic-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 on Windows 7.[2] The use of ASP pages will be supported on Windows 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
ASP uses scripting 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 using VBScript, JScript, or PerlScript. The @Language directive, the Template:Tag syntax or server configuration can be used to select the language. In the example below, Response.Write Now() is in an HTML page; it would be dynamically replaced by the current time of the server.
| Server side | Client Side |
|---|---|
The server's current time:
<%
Response.Write Now()
%>
|
The server's current time:
8/11/2015 6:24:45 PM
|
Web pages with the .asp filename 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 compiled ASP.NET; however, ASP.NET pages may still include some ASP scripting. The introduction of ASP.NET led to use of the term Classic 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
Stores variables accessible only to a single visitor, which are local variables.
<%
If Len(Request.QueryString("name")) > 0 Then
Session("name") = Request.QueryString("name")
End If
Response.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
- ASP.NET
- Template processor
- Comparison of web template engines
- Jakarta Server Pages
- PHP
- Common Gateway Interface
References
External links
- ASP on MSDN
- Microsoft Support for ASP on Windows
- Classic ASP Applications on IIS 7.0 and IIS 7.5 Overview
- Primitive Classic ASP Framework (XML, JSON, BENCODE)
- ↑ The session data is kept server-side, the ID is saved as a HTTP Cookie. Source: ASP and Web Session Management, Microsoft
- ↑ a b Script error: No such module "citation/CS1".
- ↑ Source: [1], Microsoft
- ↑ Script error: No such module "citation/CS1".