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
11
votes
3 answers

cscript jscript JSON

This is a very very (very!!!) strange problem. I have this JSCRIPT that runs on windows XP and 7 using dos CSCRIPT in a file called testJSON.js. if ( ! this.JSON ) WScript.Echo("JSON DOESN'T EXISTS"); And, well, the message appear, but is an…
Andrea Rastelli
  • 617
  • 2
  • 11
  • 26
11
votes
5 answers

Server.CreateObject( ) failure with 32 bit Windows and IIS 7

Windows 7 32 bit, IIS 7.5.760016385 I created a DLL in Visual Basic 6.0 and trying to use it from within classic ASP code: set obj = Server.CreateObject("a.b") I get the following error: 006 ASP 0178 Server.CreateObject Access Error The call…
user1894838
  • 111
  • 1
  • 1
  • 4
11
votes
5 answers

ASP to ASP.NET Session Variables

We have a website in classic asp that we are slowly migrating to ASP.NET as necessary. The problem of course is how classic asp and ASP.NET handle Sessions. After spending the last few hours researching the web, I found many articles, but not one…
PsychoDUCK
  • 1,103
  • 3
  • 17
  • 35
11
votes
4 answers

Cookie.HTTPOnly in classic ASP

How to set all the cookie variables in a page to HTTPOnly in ASP?
Morais
  • 801
  • 2
  • 10
  • 15
11
votes
4 answers

How do I extract HTML img sources with a regular expression?

I need to extract the src element from all image tags in an HTML document. So, the input is an HTML page and the output would be a list of URL's pointing to images: ex... http://www.google.com/intl/en_ALL/images/logo.gif The following is what I came…
James
10
votes
3 answers

Accessing a request's body using classic ASP?

How do I access what has been posted by a client to my classic ASP server? I know that there is the Request.Forms variable, but the client's request was not made using a Form. The client request's body is just a string made using a standard POST…
user798719
  • 9,619
  • 25
  • 84
  • 123
10
votes
3 answers

Testing if object Is Nothing results in 'Object required' error

I am supporting some classic ASP pages, one of which uses and re-uses an object conn and disposes of it either when the .asp page finishes processing or right before the page redirects to another page. <% dim conn ... set conn =…
East of Nowhere
  • 1,354
  • 4
  • 18
  • 27
10
votes
2 answers

Classic ASP - How to convert a UTF-8 string to UCS-2?

I have a problem where I am storing a UTF-8 string in SQL Server as UCS-2. When I pull it out to display on a page with content-type set to UTF-8 it works fine. But I have a third party Javascript component which when I pass it the string for the…
Brian G
  • 53,704
  • 58
  • 125
  • 140
10
votes
5 answers

the connection with the server was terminated abnormally xmlhttp

I have this asp page test1.asp in the same server (different website) than this webservice. Thing is when i try to run this code sUrl = "http://chat.xxxxx.com/UCWebServices/Chat.asmx/GetChatQueueByAddress?queueAddress=SALESCHAT" result =…
Pepito Fernandez
  • 2,352
  • 6
  • 32
  • 47
10
votes
8 answers

get new SQL record ID

How can I get back the autogenerated ID for a new record I just inserted? (Using ASP classic and MSSQL 2005)
Keith
  • 113
  • 1
  • 1
  • 7
10
votes
2 answers

SMTP configuration SendUsing configuration value is invalid with ASP-Classic

I'm trying to get an email sent using ASP classic, and am having trouble with SMTP configuration. The error: CDO.Message.1 error '80040220' The "SendUsing" configuration value is invalid. The Code(for the email itself): Set objMsg =…
matthewdunnam
  • 1,656
  • 2
  • 19
  • 34
10
votes
2 answers

getting checkbox value

How do you get the value of a checkbox in Classic ASP?
user517406
  • 13,623
  • 29
  • 80
  • 120
10
votes
1 answer

How to get the insert ID from this ADODB.Recordset?

I'm trying to avoid using straight SQL queries in my web app. I looked around and have come to the conclusion that ADO Recordsets would be the best or at least safest tool for the job. I need to insert records into a database table. Unfortunately…
sholsinger
  • 3,028
  • 2
  • 23
  • 40
10
votes
10 answers

Migrating Classic ASP - Webforms or ASP.NET MVC?

I'm doing some maintenance on a classic ASP application for my client, and as I'm looking through the ASP, the following question comes to mind - would it be easier to convert a classic ASP app to ASP.NET MVC or ASP.NET WebForms? In many ways, it…
Sam Schutte
  • 6,666
  • 6
  • 44
  • 54
10
votes
2 answers

How to send and handle Http Post in asp?

httpRequest.Open "POST", "www.example.com/handle.asp", False httpRequest.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" httpRequest.send data postResponse = httpRequest.response How do i handle the post of the above code. in…
Beginner
  • 28,539
  • 63
  • 155
  • 235