Active Server Pages (ASP), also known as Classic ASP or ASP Classic, was Microsoft Microsoft Corporation is a public multinational corporation headquartered in Redmond, Washington, USA that develops, manufactures, licenses, and supports a wide range of products and services predominantly related to computing through its various product divisions. Established on April 4, 1975 to develop and sell BASIC interpreters for the Altair 8's first server-side Server-side scripting is a web server technology in which a user's request is fulfilled by running a script directly on the web server to generate dynamic web pages. It is usually used to provide interactive web sites that interface to databases or other data stores. This is different from client-side scripting where scripts are run by the viewing script engine Active Scripting is the technology used in Windows to implement component-based scripting support. It is based on COM (more precisely, OLE Automation) and allows installation of additional scripting engines in the form of COM modules for dynamically-generated web pages A dynamic web page is a hypertext document rendered to a World Wide Web user presenting content that has been customized or actualized for each individual viewing or rendition or that continually updates information as the page is displayed to the user. It is difficult to be precise about "dynamic web page beginnings" or chronology,. Initially released as an add-on to Internet Information Services Internet Information Services - formerly called Internet Information Server - is a web server application and set of feature extension modules created by Microsoft for use with Microsoft Windows. It is the world's second most popular web server in terms of overall websites behind the industry leader Apache HTTP Server. As of March 2010[update], it (IIS) via the Windows NT 4.0 Option Pack Windows NT 4.0 is a preemptive, graphical and business-oriented operating system designed to work with either uniprocessor or symmetric multi-processor computers. It was the next release of Microsoft's Windows NT line of operating systems and was released to manufacturing on 31 July 1996 . It is a 32-bit Windows system available in both, it was subsequently included as a free component of Windows Server (since the initial release of Windows 2000 Server). It has now been superseded by ASP.NET ASP.NET is a web application framework developed and marketed by Microsoft to allow programmers to build dynamic web sites, web applications and web services. It was first released in January 2002 with version 1.0 of the .NET Framework, and is the successor to Microsoft's Active Server Pages technology. ASP.NET is built on the Common Language.

Developing functionality in ASP websites A website [citation needed] is a collection of related web pages, images, videos or other digital assets that are addressed relative to a common Uniform Resource Locator (URL), often consisting of only the domain name, or the IP address, and the root path ('/') in an Internet Protocol-based network. A web site is hosted on at least one web server, is enabled by the active scripting Active Scripting is the technology used in Windows to implement component-based scripting support. It is based on COM (more precisely, OLE Automation) and allows installation of additional scripting engines in the form of COM modules engine's support of the Component Object Model Component Object Model is a binary-interface standard for software componentry introduced by Microsoft in 1993. It is used to enable interprocess communication and dynamic object creation in a large range of programming languages. The term COM is often used in the Microsoft software development industry as an umbrella term that encompasses the OLE, (COM), with each object In computer science, an object is any entity that can be manipulated by the commands of a programming language, such as a value, variable, function, or data structure providing a related group of frequently-used functions and data attributes. In ASP 2.0 there were six built-in objects: Application, ASPError, Request, Response, Server, and Session. Session, for example, is a cookie-based A cookie, also known as a web cookie, browser cookie, and HTTP cookie, is a text string stored by a user's web browser. A cookie consists of one or more name-value pairs containing bits of information, which may be encrypted for information privacy and data security purposes session In computer science, in particular networking, a session is a semi-permanent interactive information interchange, also known as a dialogue, a conversation or a meeting, between two or more communicating devices, or between a computer and user . A session is set up or established at a certain point in time, and torn down at a later point in time object that maintains the state of variables In computer programming, a variable is a facility for storing data. The current value of the variable is the data actually stored in the variable. Depending on the programming language in question, the data stored in the variable can be intentionally altered during the program run, thus causing its value to change, or vary, hence the name. The from page to page. Functionality is further extended by objects which, when instantiated, provide access to the environment of the web server A web server is a computer program that delivers content, such as web pages, using the Hypertext Transfer Protocol (HTTP), over the World Wide Web. The term web server can also refer to the computer or virtual machine running the program; as an example FileSystemObject (FSO) is used to create, read, update and delete In computer programming, Create, Read, Update and Delete are the four basic functions of persistent storage. Sometimes CRUD is expanded with the words retrieve instead of read or destroy instead of delete. It is also sometimes used to describe user interface conventions that facilitate viewing, searching, and changing information; often using files A computer file is a block of arbitrary information, or resource for storing information, which is available to a computer program and is usually based on some kind of durable storage. A file is durable in the sense that it remains available for programs to use after the current program has finished. Computer files can be considered as the modern.

Web pages with the .asp file extension A filename extension is a suffix to the name of a computer file applied to indicate the encoding convention of its contents use ASP, although some Web sites disguise their choice of scripting language for security purposes (e.g. still using the more common .htm or .html extension). Pages with the .aspx extension are ASP.NET ASP.NET is a web application framework developed and marketed by Microsoft to allow programmers to build dynamic web sites, web applications and web services. It was first released in January 2002 with version 1.0 of the .NET Framework, and is the successor to Microsoft's Active Server Pages technology. ASP.NET is built on the Common Language (based on Microsoft's .NET Framework The Microsoft .NET Framework is a software framework that can be installed on computers running Microsoft Windows operating systems. It includes a large library of coded solutions to common programming problems and a virtual machine that manages the execution of programs written specifically for the framework. The .NET Framework supports multiple) and compiled, which makes them faster and more robust than server-side scripting Server-side scripting is a web server technology in which a user's request is fulfilled by running a script directly on the web server to generate dynamic web pages. It is usually used to provide interactive web sites that interface to databases or other data stores. This is different from client-side scripting where scripts are run by the viewing in ASP which is interpreted at run-time; however, many ASP.NET pages still include some ASP scripting. Such marked differences between ASP and ASP.NET have led to the terms Classic ASP or ASP Classic being used, which also implies some nostalgia for the simpler platform.

Most ASP pages are written in VBScript VBScript is an Active Scripting language developed by Microsoft that is modelled on Visual Basic. It is designed as a “lightweight” language with a fast interpreter for use in a wide variety of Microsoft environments. VBScript uses the Component Object Model to access elements of the environment within which it is running; for example, the, but any other Active Scripting Active Scripting is the technology used in Windows to implement component-based scripting support. It is based on COM (more precisely, OLE Automation) and allows installation of additional scripting engines in the form of COM modules engine can be selected instead by using the @Language directive or the <script language="language" runat="server"> syntax. JScript JScript is a scripting language based on the ECMAScript standard that is used in Microsoft's Internet Explorer (Microsoft's implementation of ECMAScript ECMAScript is the scripting language standardized by Ecma International in the ECMA-262 specification and ISO/IEC 16262. The language is widely used for client-side scripting on the web, in the form of several well-known dialects such as JavaScript, JScript, and ActionScript) is the other language that is usually available. PerlScript (a derivative of Perl Perl is a high-level, general-purpose, interpreted, dynamic programming language. Perl was originally developed by Larry Wall in 1987 as a general-purpose Unix scripting language to make report processing easier. Since then, it has undergone many changes and revisions and become widely popular amongst programmers. Larry Wall continues to oversee) and others are available as third-party installable Active Scripting engines.

Contents

History

Based on the dbWeb and iBasic tools, created by Aspect Software Engineering, ASP was one of the first web application development environments that integrated web application execution directly into the web server, 9 months after the release of NeXT's (now Apple) WebObjects WebObjects is a Java web application server from Apple Inc., and a web application framework that runs on the server. It is available, at no additional cost, as part of the Xcode Developer Tools included with Apple's Mac OS X operating system. Its hallmark features are its object-orientation, database connectivity, and prototyping tools. This was done in order to achieve high performance compared to calling external executable programs or CGI The Common Gateway Interface is a standard protocol that defines how webserver software can delegate the generation of webpages to a console application. Such applications are known as CGI scripts; they can be written in any programming language, although scripting languages are often used scripts which were the most popular method for writing web applications at the time.[when?]

Prior to Microsoft's release of ASP for IIS 3, web programmers working in IIS relied on IDC and HTX files combined with ODBC In computing, Open Database Connectivity provides a standard software interface for accessing database management systems (DBMS). The designers of ODBC aimed to make it independent of programming languages, database systems, and operating systems. Thus, any application can use ODBC to query data from a database, regardless of the platform it is on drivers to display and manipulate dynamic data and pages. The basics of these file formats and structures were used, at least in part, in the implementation of the early versions of ASP.

Halcyon InstantASP (iASP) and Chili!Soft ASP are third-party products that run ASP on platforms other than the Microsoft Windows operating systems. Neither alternative to real ASP fully emulates every feature, and may require additional components with which traditional ASP has no issues, such as database connectivity. MS access database support is a particular issue on non-Windows systems.

iASP is able to use the VBScript and JScript languages unlike Chili!Soft ASP which uses JScript. Microsoft's ASP can use both and has the potential to have other languages make use of the scripting engine. iASP was written in Java, and as such will run on almost any operating system. iASP appears to be no longer available or at least hard to find.

Examples of other languages available are Perl and TCL, although they are not as widely known or used for ASP scripting. There is an Apache Webserver mod that runs an ASP-like Perl script language.[1]

Chili!Soft, initially released in 1997, was acquired by Cobalt Networks on May 24, 2000. Cobalt Networks subsequently was purchased by Sun Microsystems on December 7, 2000. Chili!Soft was renamed "Sun ONE Active Server Pages", then later renamed to "Sun Java System Active Server Pages". Chilisoft ASP was written in C/C++ and is tied rather tightly to specific web server versions. According to Sun "Sun Java System Active Server Pages has entered its End Of Life".[2]

Versions

ASP has gone through three major releases:

ASP 3.0 is currently available in IIS 6.0 on Windows Server 2003 and IIS 7.0 on Windows Server 2008.

ASP.NET ASP.NET is a web application framework developed and marketed by Microsoft to allow programmers to build dynamic web sites, web applications and web services. It was first released in January 2002 with version 1.0 of the .NET Framework, and is the successor to Microsoft's Active Server Pages technology. ASP.NET is built on the Common Language is often confused as the newest release of ASP, but the technologies are very different. ASP.NET relies on the .NET Framework The Microsoft .NET Framework is a software framework that can be installed on computers running Microsoft Windows operating systems. It includes a large library of coded solutions to common programming problems and a virtual machine that manages the execution of programs written specifically for the framework. The .NET Framework supports multiple and is a compiled language, whereas ASP is strictly an interpreted scripting language.

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.[3] Microsoft's What's New in IIS 5.0 lists some additional changes.

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

Any scripting languages compatible with Microsoft's Active Scripting Active Scripting is the technology used in Windows to implement component-based scripting support. It is based on COM (more precisely, OLE Automation) and allows installation of additional scripting engines in the form of COM modules standard may be used in ASP. The default scripting language (in classic ASP) is VBScript VBScript is an Active Scripting language developed by Microsoft that is modelled on Visual Basic. It is designed as a “lightweight” language with a fast interpreter for use in a wide variety of Microsoft environments. VBScript uses the Component Object Model to access elements of the environment within which it is running; for example, the:

  1. <html>
    
  2. <body>
    
  1. <% Response.Write "Hello World!" %>
    
  1. </body>
    
  2. </html>
    

Or in a simpler format

  1. <html>
    
  2. <body>
    
  1. <%= "Hello World!" %>
    
  1. </body>
    
  2. </html>
    

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

Here's an example of how to connect to an 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 UserID FROM Users", oConn,1,3
    
  6. %>
    

See also

References

  1. ^ "Apache::ASP". Chamas Enterprises Inc. http://www.apache-asp.org/. Retrieved 2009-01-08.
  2. ^ "Sun Java System Active Server Pages". Sun Microsystems. http://www.sun.com/software/chilisoft/. Retrieved 2008-12-31.
  3. ^ 4 Guys From Rolla's A Look at ASP 3.0

External links

Wikibooks has a book on the topic of Active Server Pages

Categories: Microsoft server technology Categories: Microsoft software | Microsoft server software | Microsoft Office Servers | Servers

 

The above information uses material from Wikipedia and is licensed under the GNU Free Documentation License The purpose of this License is to make a manual, textbook, or other functional and useful document "free" in the sense of freedom: to assure everyone the effective freedom to copy and redistribute it, with or without modifying it, either commercially or noncommercially. Secondarily, this License preserves for the author and publisher a.
Some facts may not have been fully verified for accuracy. [Disclaimers Wikipedia is an online open-content collaborative encyclopedia, that is, a voluntary association of individuals and groups working to develop a common resource of human knowledge. The structure of the project allows anyone with an Internet connection to alter its content. Please be advised that nothing found here has necessarily been reviewed by]
This page was last archived by our server on Thu Sep 2 23:22:24 2010. [ refresh local cache ]
Displaying this page or its contents does not use any Wikimedia Foundation's resources.
The owners of this site proudly support the Wikimedia Foundation.


lektion13 01 png
html.dk
lektion13 01 png
420px x 551px | 33.10kB

[source page]

runat=server > koden resulterer i foelgende Figur 1 Brug af kontrollen Nar siden loades foerste gang tildeles de to tekstbokse en vaerdi i Page Load Bemaerk at der tildeles vaerdier i de korrekte datatyper hvis der var brugt

Yahoo Images Search: Active Server Pages,
Thu Sep 2 23:22:27 2010
What's ASP? What Does ASP Stand For?
brighthub.com
What's ASP? What Does ASP Stand For?

BrandyABurgess

Mon, 03 May 2010 01:58:32 GM

Active Server Pages. , or ASP, are commonly used as a middleman between the user and web server. Here, you will learn the answers to common questions such as 'what does ASP stand for?' and 'What is ASP'? ...

Google Blogs Search: Active Server Pages,
Thu Sep 2 23:22:28 2010