Questions tagged [asp-classic]

Active Server Pages (ASP), also known as Classic ASP or ASP Classic, was Microsoft's first server-side script-engine for dynamically-generated web pages. The introduction of ASP.NET led to use of the term Classic ASP for the original technology.

Initially released as an add-on to Internet Information Services (IIS, formerly Internet Information Server) via the Windows NT 4.0 Option Pack, it was subsequently included as a free component of the Windows Server Operating System (since the initial release of Windows 2000 Server).

ASP 2.0 provided six built-in objects: Application, ASPError, Request, Response, Server, and Session. Session, for example, represents a cookie-based session that maintains the state of variables from page to page. The Active Scripting engine's support of the Component Object Model (COM) enables ASP websites to access functionality in compiled libraries such as DLLs.

ASP 3.0 provided some enhancements to the 2.0 version, including the Server.Transfer method, Server.Execute method and an improved ASPError object.

ASP supports multiple scripting languages, including VBScript (by default), but there are other options. An alternative Active Scripting engine can be selected with the @Language directive or the syntax. JScript (Microsoft's implementation of ECMAScript) is the other language that is built-in. PerlScript (a derivative of Perl) and others are available as third-party installable Active Scripting engines.

Though ASP is considered to be an old technology (first version released on December 1996, last version released on November 2000), the use of ASP pages is still supported today (November 22nd 2018).

According to Active Server Pages (ASP) support in Windows page on support.microsoft.com:

...The use of ASP pages with Microsoft Internet Information Services (IIS) is currently supported in all supported versions of IIS.

IIS is included in Windows operating systems, and therefore both ASP and IIS support lifetimes are tied to the support lifecycle of the host operating system. Visit Microsoft Lifecycle Policy for information about the lifecycle policy of your operating system.

11473 questions
2
votes
2 answers

Confused Requests between Classic ASP + .NET Application

I'm experiencing a problem with a Classic ASP application I'm maintaining (the architect is long gone). Each customer site gets a virtual directory that corresponds to their database name - for example, http://www.site.com/Foo would be a site for…
overslacked
  • 4,127
  • 24
  • 28
2
votes
4 answers

Store the result of a subquery for re-use

Using ASP Classic and MS Access (don't ask), how can I temporarily store the result of a subquery for re-use? For example, I want to run multiple queries from my ASP script like: SELECT stuff FROM (subquery) WHERE ... conditions SELECT otherstuff…
Flash
  • 15,945
  • 13
  • 70
  • 98
2
votes
1 answer

Classic ASP on IIS 7 Windows Server 2008 64 Bit in 32-bit mode

I need to setup an old ASP site on our Win64 box that is running II7/Win 2008. The site runs on an MS Access database (no option to upgrade the db), so due to the MS Access 64-bit driver 'issue'. I've set the site to run in 32-bit mode via the IIS…
kb.
  • 1,010
  • 3
  • 17
  • 34
2
votes
1 answer

How does the classic asp connection.errors collection actually work?

I am trying to confirm how the actual ADODB.Connection.Errors collection should actually work. My interpretation at the moment is that the connection will hold all the errors for the all the procedures that have been executed on that connection. So…
Kevin Donde
  • 912
  • 3
  • 15
  • 32
2
votes
6 answers

How to convert string to datetime format classic asp

I have one variable Dim tt="2008-10-20 10:00:00.0000000" I want to change it into date,
jain ruchi
  • 245
  • 3
  • 5
  • 11
2
votes
1 answer

Password protect files on IIS without using NTFS file permission

We host online reports that a client will log into and view. The reports are ASP pages pulling the necessary numbers from a SQL Server database. The client's access details are managed by a table in the SQL Server too. In the past we've had one or…
Dan
  • 865
  • 2
  • 11
  • 19
2
votes
2 answers

How to display four images with rotate effect from folder using classic ASP?

I have one folder in which my images get stored, now I want to create a slideshow such as the one here. I tried the following code (but it displays just single image on page refresh): <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%> <% …
user1107760
  • 27
  • 1
  • 5
2
votes
1 answer

Adding a "remember me" box to an asp login form

Can anyone point me in the right direction for adding a remember me checkbox for a simple login page? It basically only uses a password, not a user name. Is this possible? Here's the code for the unprotected part of the login asp…
Andrew
2
votes
1 answer

How to properly report / handle classic asp page errors and database errors

I have been trying to create an error handling path for our classic asp website. I have been searching for information for 3hrs now and have not found much even here on stack overflow. So if you can point me towards a duplicate great ... I couldn't…
Kevin Donde
  • 912
  • 3
  • 15
  • 32
2
votes
1 answer

ASP, Server.CreateObject, MTS and C# object pooling -- a reuse problem?

I'm trying to debug an "occasional" problem. We've got a classic ASP application that needs to send email. For whatever reasons it's using a C# object exposed via COM to do this send; the c# object is a simple wrapper around MailMessage and…
Walden Leverich
  • 4,416
  • 2
  • 21
  • 30
2
votes
2 answers

File Upload from Popup - Broken in IE9, Works Elsewhere

We've used for some years a home-grown file uploader for our classic ASP website. It works like this: ASP page sets some specific constants and #includes an ASP library called Browse-Files.asp. Browse-Files.asp displays, inside the #including page,…
Lukas
  • 23
  • 1
  • 4
2
votes
3 answers

Classic ASP - BOF

I am trying to run two WHILE NOT loops for a recordset. One of the loops counts the number of items whilst the other prints the results. I cannot alter the SQL query, so this is the counting method I'm left with. setPeopleCount = 0 While NOT…
TheCarver
  • 19,391
  • 25
  • 99
  • 149
2
votes
1 answer

decoding xml in classic asp

I have the following xml that I need to place element names and values into a database Dave Developer my response John
Dave
  • 369
  • 2
  • 8
  • 20
2
votes
1 answer

Transform Strings Codepage IBM-850 / Windows-1252 / UTF-8

Ok i got a database in DbaseIV format, wich have data in Codepage IBM-850 ,that i need to import to SQL server 2008. I use an asp script to import the data, recently i found problems to store special characters in strings. Currently this fields are…
Rafael
  • 3,081
  • 6
  • 32
  • 53
2
votes
2 answers

COM-wrapped dll in a classic asp/vbscript file not creating object

I am attempting to use a COM-wrapped dll in a classic asp/vbscript file but am unable to create the object. A DLLTest.asp file provides me with the following error: Server object error 'ASP 0177 : 800401f3' Server.CreateObject Failed…
Seraph812
  • 397
  • 3
  • 7
  • 17