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

Update div with jQuery ajax response html

I am trying to update a div with the content from an ajax html response. I beleive I have the syntax correct, however the div content gets replaced with the entire HTML page response, instead of just the div selected in the html response. What am I…
thedeepfield
  • 6,138
  • 25
  • 72
  • 107
42
votes
5 answers

Is it better to log to file or database?

We're still using old Classic ASP and want to log whenever a user does something in our application. We'll write a generic subroutine to take in the details we want to log. Should we log this to, say, a txt file using FileSystemObject or log it to a…
Igor K
  • 1,261
  • 3
  • 13
  • 19
42
votes
6 answers

What is the best way to iterate through an array in Classic Asp VBScript?

In the code below For i = LBound(arr) To UBound(arr) What is the point in asking using LBound? Surely that is always 0.
Ronnie
  • 8,053
  • 6
  • 34
  • 34
40
votes
5 answers

How to do a single line If statement in VBScript for Classic-ASP?

The "single line if statement" exists in C# and VB.NET as in many other programming and script languages in the following format lunchLocation = (dayOfTheWeek == "Tuesday") ? "Fuddruckers" : "Food Court"; does anyone know if there is even in…
Max
  • 4,965
  • 17
  • 49
  • 64
38
votes
4 answers

Hex-Value in Visual Basic

Can someone just help me refresh my mind? How do you specify hex values in a Visual Basic 6 / VBScript Source? It's not 0xABCD as it is in C++, that's what I can remember... It was something similar... But what?
BlaM
  • 28,465
  • 32
  • 91
  • 105
37
votes
4 answers

What does (?: do in a regular expression

I have come across a regular expression that I don't fully understand - can somebody help me in deciphering it: ^home(?:\/|\/index\.asp)?(?:\?.+)?$ It is used in url matching and the above example matches the following…
Graham
  • 7,807
  • 20
  • 69
  • 114
36
votes
10 answers

Firefox Links to local or network pages do not work

I have a .asp application where image files (.PDF) are stored in a directory (fed by a copier/scanner). The created file names are stored in a database table. When a query is launched from the web page a link to the file is created. When clicked…
Joe
  • 791
  • 4
  • 9
  • 11
36
votes
8 answers

Classic ASP SQL Injection Protection

What is a strong way to protect against sql injection for a classic asp app? FYI I am using it with an access DB. (I didnt write the app)
Daniel A. White
  • 187,200
  • 47
  • 362
  • 445
36
votes
7 answers

How do you debug classic ASP?

I have to debug a classic asp site being served by IIS 7 (windows 2008). How can I do this? I have only worked with ASP.NET.
Ronnie Overby
  • 45,287
  • 73
  • 267
  • 346
34
votes
8 answers

Setting HTTPONLY for Classic Asp Session Cookie

Does anyone know exactly how to set HTTPONLY on classic ASP session cookies? This is the final thing that's been flagged in a vulnerability scan and needs fixing ASAP, so any help is appreciated. ~~~A LITTLE MORE INFORMATION ON MY PROBLEM~~~ Can…
E.Shafii
  • 341
  • 1
  • 3
  • 4
33
votes
8 answers

An error occurred in the secure channel support - Classic ASP HTTP Request

I have a classic ASP website running on a Windows Server 2012 box. One page makes a HTTP request to another application over https using code like this: Sub ShopXML4http(url, inStr, outStr, method, xmlerror) Dim objhttp Set objhttp =…
Mike S
  • 449
  • 1
  • 5
  • 9
32
votes
7 answers

How to resolve "The requested URL was rejected. Please consult with your administrator." error?

I have a ASP application. On click of a particular link, some VB scripts are executed and an ASP page is to be shown, but instead I get a screen that says: Information Not Available. The requested URL was rejected. Please consult with your…
suhas
  • 531
  • 1
  • 6
  • 15
31
votes
5 answers

How do I properly instantiate 32-bit COM objects in classic ASP after installing Windows Update KB4340558?

On Windows Server 2012 R2, after installing update KB4340558 (update history) / KB4338424 (installed updates) we can no longer instantiate .NET .DLLs (interop) in classic ASP in 32-bit mode using server.createobject. We receive the error 0x800A01AD…
user2458080
  • 989
  • 8
  • 17
31
votes
6 answers

How do I enable upload of large files in classic ASP on IIS 7?

Recently I had to get an old ASP application working in IIS 7.5 on a W2K8 server. Almost everything works fine, except that I can't seem to get it to accept uploads larger than ~200kB. I did find a setting, that from what I can understand should to…
Johan Driessen
  • 841
  • 2
  • 8
  • 13
31
votes
3 answers

Error checking for NULL in VBScript

I have the following VBScript in a Classic ASP page: function getMagicLink(fromWhere, provider) dim url url = "magic.asp?fromwhere=" & fromWhere If Not provider is Nothing Then ' Error occurs here url = url & "&provider=" &…
Vivian River
  • 31,198
  • 62
  • 198
  • 313