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
14
votes
1 answer

Invalid column name 'False' (Classic asp, table edit issue)

I have installed a table editor, (Universal Table Editor) which is coded by classic asp. However I am not able to edit or delete a column. I recieve the error Invalid column name 'False' The reasons seems to be bit field of SQL Server, it displays…
HOY
  • 1,067
  • 10
  • 42
  • 85
14
votes
9 answers

What is the easiest way to convert from asp classic to asp.net?

I am a .Net developer that has been tasked with upgrading a classic asp website to asp.net. The website is currently running on luck and bubble gum but there is not enough time or money to stop progress and do a full rewrite. Of course I will still…
OrionRobillard
  • 211
  • 1
  • 2
  • 9
14
votes
5 answers

Can't use HTTPS with ServerXMLHTTP object

I am supporting a Classic ASP application that connects to a payment gateway via HTTPS. Up until recently there have been no issues. A few days ago the latest updates were installed on the server (Windows Server 2003) and caused the site to break.…
Imraan
  • 657
  • 1
  • 5
  • 10
14
votes
3 answers

Looping through a form to get field names and filed values issue (classic ASP)

on submit of a form, I would like to capture the field names and values of the forms and I want them passed without even showing in the browser (Response.Write makes them visible in the browser). How I can do this please? I am using this code: …
Rene Zammit
  • 1,121
  • 5
  • 19
  • 42
14
votes
4 answers

Automatically Testing Classic ASP

I've been researching automated testing of classic ASP websites to help bring my company into the late 1990's. We run an application made up of ~14K classic ASP pages, with ASP .NET slowly gaining more of a share. We've introduced unit tests for…
tmcg
  • 175
  • 1
  • 6
14
votes
4 answers

Googlebot causes .NET System.Web.HttpException

I have an ASP.NET website mixed with classic asp (we are working on a conversion to .NET) and I recently upgraded from .NET 1.1 to .NET 4.0 and switched to integrated pipeline in IIS 7. Since these changes ELMAH is reporting errors from classic asp…
user833610
14
votes
3 answers

Classic ASP (VBScript) convert HTML codes to plain text

I'm trying to convert HTML Codes like the &#XXXX; (where XXXX is a number) to plain text using classic ASP (VBScript). I'm adding the text to an email which is in plain text format and if I add them as HTML Codes, it just displays the code and…
Dan Ellis
  • 5,537
  • 8
  • 47
  • 73
14
votes
3 answers

How to correctly marshal VB-Script arrays to and from a COM component written in C#

I'm building a COM object in C# (.Net 4.0) to be used in an classic asp site. Now I'd like to know what's the proper way to marshal VB-Script arrays (single and multidimensional) back and forth between the component and the asp site? A code sample…
Mats
  • 14,902
  • 33
  • 78
  • 110
14
votes
2 answers

How to Create a C# Listener Service for MSMQ as a Windows Service

I'll start by saying I'm not a .NET developer, but have been thrown into a project where I need to use MSMQ so a classic ASP web application can send messages to a C# Windows Service that handles the processing. I have experience integrating other…
philfeyn
  • 141
  • 1
  • 1
  • 3
14
votes
12 answers

Thread Sleep in Classic ASP?

I'm doing some revision on an old app that is written in classic ASP/VbScript. It has a feature to send out an e-mail to the members of the application, but because the member list is quite large, the server rejects new e-mails after the first…
FlySwat
  • 172,459
  • 74
  • 246
  • 311
14
votes
3 answers

How to encrypt in VBScript using AES?

I am looking to encrypt some data using Rijndael/AES in VBScript using a specific key and IV value. Are there any good function libraries or COM components that would be good to use? I looked at CAPICOM; it allows a passphrase only, and won't allow…
Jon
14
votes
5 answers

ORDER BY clause is invalid unless TOP or FOR XML is also specified

I get "The ORDER BY clause is invalid in views, inline functions, derived tables, subqueries, and common table expressions, unless TOP or FOR XML is also specified." error with the following code. I initially had two tables, ADSAREAS & CATEGORIES. I…
zurna
  • 1,161
  • 4
  • 16
  • 20
14
votes
4 answers

Finding and removing orphaned web pages, images, and other related files

I am working on a number of websites with files dating back to 2000. These sites have grown organically over time resulting in large numbers of orphaned web pages, include files, images, CSS files, JavaScript files, etc... These orphaned files…
William Edmondson
  • 3,619
  • 3
  • 32
  • 41
14
votes
6 answers

Classic ASP and ASP.NET Integration

In a previous job we had a classic ASP application that no one wanted to migrate to ASP.NET. The things that it did, it did very well. However there was some new functionality that needed to be added that just seemed best suited to ASP.NET. The…
wcm
  • 9,045
  • 7
  • 39
  • 64
14
votes
7 answers

Classic ASP: Multiple ASPSESSIONID in cookies

I have a problem with a classic asp page and I just cannot solve it since 3 days. The page is working with Sessions - sometimes it happens that the ASPSESSIONID cookie is set twice in the Request.ServerVariables("HTTP_COOKIE"). This causes the…
swervedriver
  • 166
  • 1
  • 1
  • 5