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
10
votes
7 answers

How to output an Excel *.xls file from classic ASP

I have a number of generated html tables that I need to output as an Excel file. The site is codded in classic ASP. Is this possible? Could it be done by somehow using the Open Office libraries? EDIT: Thus far, I have tried some of the suggestions,…
cdeszaq
  • 30,869
  • 25
  • 117
  • 173
10
votes
3 answers

having trouble reading header values in classic ASP

This is all internal servers and software, so I'm very limited on my options, but this is where I'm at. This is already a band-aid to a workaround but I have no choice, so I'm just trying to make it work. I have a simple .asp file on my server…
MitchelWB
  • 619
  • 1
  • 7
  • 18
10
votes
2 answers

Setting CursorType with ADODB.Command.Execute

Is there any way to set the CursorType for an ADODB.RecordSet which I obtain from ADODB.Command.Execute? I know that it is possible if I do: rs = Server.CreateObject("ADODB.RecordSet") rs.Open(cmd) However, I currently use Command.Execute with the…
Alex Gaynor
  • 14,353
  • 9
  • 63
  • 113
10
votes
6 answers

Attack on ASP site that uses a SQL server database

We have a survey site that was apparently attacked. The symptoms are identical to what was described on the following page on this site: XSS Attack on the ASP.NET Website. I found multiple entries in our IIS logs that included the malicious code: <…
David
  • 101
  • 1
  • 1
  • 3
10
votes
3 answers

ASP: request.form is not returning value?

I have following form,
djmzfKnm
  • 26,679
  • 70
  • 166
  • 227
10
votes
4 answers

Download a file using Javascript

There's this Excel file I want users to be able to download from my server. There must be an easy way to initiate the download of the file after a click on the "Download" button... but I have no clue how to make that happen. I have this so far: …
Kablam
  • 2,494
  • 5
  • 26
  • 47
10
votes
1 answer

What version of JavaScript does ASP Classic use?

The hacks I've seen for identifying a JavaScript version are all tailored to the browser, not an ASP Classic server running JavaScript. (And no, I'm not running ASP Classic/JavaScript by choice.)
Shay Guy
  • 1,010
  • 1
  • 10
  • 21
10
votes
2 answers

Classic asp: Error '800a01ad' ActiveX component can't create object

Getting '800a01ad' ActiveX component can't create object while running a Classic ASP application on 64 bit windows 7. I have tried all suggested solution but no luck I have enabled 32-bit on my IIS Application Pool. I have registered the .DLL…
Areesha
  • 133
  • 1
  • 1
  • 13
10
votes
15 answers

Do you think Microsoft will ever not support classic asp in IIS

We are trying to make big decisions about our support for classic asp. Does anyone see a reason why Microsoft can't drop support for IIS. Any examples of Microsoft technologies like this that have had their support dropped would help. ASP is a…
Brian G
  • 53,704
  • 58
  • 125
  • 140
10
votes
5 answers

Regex to match last space character

I need some help. I am looking for a regex that would match the last space character in a string. I am using JavaScript and classic ASP. I have a long string of text which I trim to 100 characters. I would like to remove the last character to avoid…
Gerald Ferreira
  • 1,349
  • 2
  • 23
  • 44
10
votes
2 answers

adding custom header with classic asp

I was wondering if its possible to add custom header with classic asp. In other words, I am looking for classic asp equivalent of .net's Response.AddHeader(). i.e. HttpContext.Response.AddHeader("customheadertruefalse","1");
zurna
  • 1,161
  • 4
  • 16
  • 20
10
votes
4 answers

Classic ASP Request.ServerVariables("LOGON_USER") returning wrong username

Classic ASP Request.ServerVariables("LOGON_USER") is returning wrong username. Here is the scenario: I have two accounts on the domain, one for administration and one for normal use. The admin account is set as admin (in the Administrators group) on…
Jari
  • 183
  • 1
  • 3
  • 10
10
votes
4 answers

Getting "This type of page is not served", How to run classic asp in VisualStudio on local machine?

I have an ASP.NET project in Visual Studio and have added a classic asp forum application. When I run this on my localhost machine (XP Pro with IIS), I get "This type of page is not served because it has been explicitly forbiidden". This project…
James
  • 305
  • 4
  • 10
  • 23
10
votes
3 answers

ASP - Printing the entire request contents

I'm debugging some ASP code and I need to get a quick printout of the current Request datastructure, which I believe is an array of key/value pairs. I see that Request.Form("key") is the method for extracting individual elements. Any tips on…
Brian Webster
  • 30,033
  • 48
  • 152
  • 225
10
votes
2 answers

Providing authentication info via msxml2.ServerXMLHTTP

I am using Classic ASP and trying to use the JustGiving API. I'd like to use it to display the total amount raised, and total donations received on my donation page, on my website. I can see that info is available…
user2077098