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

How to convert Windows-1255 To UTF-8 in Classic ASP?

How can I convert a windows-1255 string to utf-8 in classic ASP? My database is windows-1255 and I want to transfer my site to utf-8.
Alon
3
votes
4 answers

Server.Transfer from ASP to ASP.Net

Here's my scenario: A desktop application posts to a specific ASP page in my web application with XML data. The web application is being re-written to ASP.Net; however, the Url for that specific page can not change (due to the desktop…
John
  • 17,163
  • 16
  • 65
  • 83
3
votes
1 answer

Can I connect to CouchDB from ASP Classic / Javascript running on Windows?

Cloudant offers a hosted CouchDB, with a free starter level allowing 6GB of IO per month. Good for developers learning CouchDB. Since CouchDB allows specification of the map/reduce functions in Javascript, it might make sense to connect to it via…
Cheeso
  • 189,189
  • 101
  • 473
  • 713
3
votes
1 answer

500.0 0x800700c1 on IIS 7.5 ASP 32-bit AppPool on Windows 2008 Server x64

I'm trying to get a classic ASP application working in 32-bit mode on our new Windows 2008 Server x64 with IIS 7.5. I've created an ApplicationPool named 'TEST' that is set to ASP.NET 2.0 in Classic mode and gone into Advanced Settings and set…
Brad
  • 1,684
  • 4
  • 20
  • 36
3
votes
1 answer

ASP Classic Request.Form is empty after adding IIS Module

This is driving me crazy. I have a web app that is a mixture of ASP.NET MVC 3 and Classic ASP. The Classic ASP code is very old and doesn't really do much to prevent Cross-Site Scripting or any other vulnerability. In an effort to add a bit of…
epignosisx
  • 6,152
  • 2
  • 30
  • 31
3
votes
3 answers

Starting an ASP Session

I am working on a system using ASP that requires session control. What is the syntax for starting and retrieving a session value using ASP?
James Obuhuma
  • 397
  • 3
  • 8
  • 20
3
votes
1 answer

Unable to run asp file. Instead being prompted to download said asp file

Currently, I have my html code have a form that inputs a first and last name. I have set the input type as submit and set the action attribute as the asp file. However, when I click the submit button, my brower shows me a dialog box and asks if I…
blazinazian
  • 305
  • 3
  • 9
3
votes
1 answer

Content-Disposition attachment filename with blankspace in InterNet Explorer

string filename = Server.UrlPathEncode(Path.GetFileName(_Filename))); Response.AddHeader("Content-Disposition", "attachment; filename=\"" + encodeURIComponent(filename) + "\""); I wrote a code like this.. It Works Fine in all the browsers but in…
3
votes
1 answer

Programmatically set "Enable Parent Paths" in IIS7 from C#

I'm trying to setup a website from a c# application and have managed to do everything except access the "ASP" settings. I would like to be able to turn "Enable Parent Paths" on for my site. I have so far managed everything using…
sonicm
  • 33
  • 3
3
votes
3 answers

Microsoft VBScript runtime error '800a0009'

I recently inherited a website in ASP, which I am not familiar with. Yesterday, one of the pages began to throw an error: Microsoft VBScript runtime error '800a0009' Subscript out of range: 'i' default.asp, line 19 Here is the code from lines…
Patrick Appelman
  • 55
  • 1
  • 2
  • 7
3
votes
1 answer

Determine if a value from an array exists in another array in classic ASP

I am very new to ASP, it is far from my language of choice, and is completely out of my comfort zone. I have two arrays, and I need to determine easily if a value from the first array exists in the second array. How would I do this? I am not sure…
Barry Chapman
  • 6,690
  • 3
  • 36
  • 64
3
votes
2 answers

Read server variables in classic ASP that have been set in ASP.NET httpmodule

EDIT: Simple version of the question: I want to create server variables in the .NET httpmodule and read them in my classic ASP code. Is this possible? or the wrong approach? ENDEDIT: So I have taken over a classic asp application and the author…
Dave Hanson
  • 515
  • 4
  • 11
3
votes
2 answers

classic ASP protection against SQL injection

I've inherited a large amount of Classic ASP code that is currently missing SQL injection protection, and I'm working on it. I've examined in detail the solutions offered here: Classic ASP SQL Injection Protection On the database side, I have a…
iliaden
  • 3,791
  • 8
  • 38
  • 50
3
votes
2 answers

Blank page when connecting to sql server - classic asp

I need help I am getting a constant blank page when connecting to a database in classic asp. I have changed some of the connection string for security purposes. I know this string works because I can connect to it in vb.net. …
n_starnes
  • 376
  • 1
  • 6
  • 20
3
votes
4 answers

ASP Classic Named Parameter in Paramaterized Query: Must declare the scalar variable

I'm trying to write a parameterized query in ASP Classic, and it's starting to feel like i'm beating my head against a wall. I'm getting the following error: Must declare the scalar variable "@something". I would swear that is what the hello line…
My Alter Ego
  • 3,392
  • 3
  • 18
  • 9