Active Server Pages

ImprimirCitar

Active Server Pages (ASP), also known as classic ASP, is a server-side technology from Microsoft for web pages dynamically generated, which has been marketed as an add-on to Internet Information Services (IIS).

The interesting thing about this technological model is being able to use various components already developed, such as some ActiveX controls as well as server-side components, such as CDONTS, for example, sending mail using CDONTS that allows scripts to interact with the server SMTP that integrates IIS.

It is limited (ASP technology) to work only on Microsoft Windows, as it requires the IIS server (there are alternatives such as mod-mono for Apache that allows us to use this technology on other operating systems); although in the "9x" From Microsoft Windows it was possible to install Microsoft Personal Web Server (PWS) and thus use asp. It can also be installed on third-party software such as Baby Web Server.

Versions

It has gone through four major versions:

  • ASP 1.0 (distributed with IIS 3.0)
  • ASP 2.0 (distributed with IIS 4.0)
  • ASP 3.0 (distributed with IIS 5.0)
  • ASP.NET (part of Microsoft.NET platform).

Pre-.NET versions are currently (since 2002) referred to as classic ASP.

In the latest classic ASP, ASP 3.0, there are seven built-in objects available to the developer: Application, ASPError, Request, Response, Server, Session, and ObjectContext.

Since 2002, classic ASP is being replaced by ASP.NET, which, among other things, replaces interpreted languages such as VBScript or JScript by languages compiled to intermediate code (called MSIL or Microsoft Intermediate Language) such as Visual Basic.NET, C#, or any other language that supports the.NET platform. MSIL code is post-compiled to native code.

Example

Pages can be generated by mixing server-side scripting code (including database access) with HTML.

Example1 (Hello World):

% Response.Write ("Hello World") % organic

This code displays the phrase: Hello World

Example2:

%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"% organic(...)
Δ!--#include virtual="/Conexion to database.asp" --(...)
Leave a comment  fakenbsp; fakenbsp; fakenbsp;%If (CStr(Recordset1.Fields.Item("ValorX").Value)=(CStr(Recordset2.Fields.Item("Valory").Value) Then% organic≤2(Recordset2_total)% tax/strong%else% organic0Δ/strong%end if% organic ≤2

This code outputs in HTML the value of a record from a database; when ValueX is equal to ValueY we are shown the total number of records in a database (prior implementation of the corresponding recordsets).

Contenido relacionado

Cryptanalysis

cryptanalysis is the part of cryptology that is dedicated to the study of cryptographic systems in order to find weaknesses in the systems and break their...

Computer architecture

Computer architecture is the conceptual design and fundamental operational structure of a computer system. That is, it is a model and functional description...

Oscilloscope

An oscilloscope is an electronic display instrument for graphically representing electrical signals that can vary over time. It is widely used in signal...
Más resultados...
Tamaño del texto:
Copiar