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

Debugging Classic ASP in Visual Studio 2010

I have read this question and this page linked to in the question, as well as dozens of other articles about debugging asp classic with VS but it's still not clicking for me. I am using VS 2010. The files I want to debug live on a remote server. I…
Don Zacharias
  • 1,544
  • 2
  • 14
  • 31
18
votes
6 answers

One jQuery Change Event on Multiple Elements

I have 3 textboxes, all with the same id's that I process into ASP by bringing it into a controller array I have a link that adds an unlimited number of textboxes below the first 3. My current change statement: $('input.#invent').change(function…
user2182715
  • 349
  • 1
  • 2
  • 8
17
votes
6 answers

ASP, need to use SFTP

This is ASP classic, not .Net. We have to get a way to SFTP into a server to upload and download a couple of files, kicked off by a user. What have other people used to do SFTP in ASP classic? Not necessarily opposed to purchasing a control.
Matt Dawdy
  • 19,247
  • 18
  • 66
  • 91
17
votes
5 answers

Anti XSS and Classic ASP

I'm currently trying to secure my classic ASP application from XSS. I came across the AntiXSS from Microsoft on the net and I was wondering if this would work with a classic application? If not do you have any ideas how I could go about sanitizing…
Steoates
  • 3,058
  • 5
  • 27
  • 43
17
votes
3 answers

How to return a JSON object in classic ASP

I want to return a JSON object using a classic ASP script (it's part of an AJAX request). If I just send the reponse as text like: response.write("{ query:'Li', suggestions:['Liberia','Libyan Arab Jamahiriya','Liechtenstein','Lithuania'],…
Flash
  • 215
  • 1
  • 2
  • 6
17
votes
3 answers

Request.BinaryRead(Request.TotalBytes) throws error for large files

I have code that accepts binary data via POST and reads in an array of bytes. For files larger than 200 Kb, the operation fails. I've checked with my sysadmin (we're running IIS 7) to see if there was a limit in our configuration and he says there…
Adam
  • 12,236
  • 9
  • 39
  • 44
17
votes
9 answers

Is it worth learning classic ASP?

I know the differences between ASP and ASP.NET generally, as I am new to both, so I don't understand all of them, but I get the fact that ASP.NET is built on top of Microsofts .NET framework, and is the next generation of ASP, but it's built from…
Qcom
  • 18,263
  • 29
  • 87
  • 113
17
votes
5 answers

Uploading a file in classic asp

I've always used the following script to upload files in classic asp, but it stopped working giving me this error vbscript runtime error 800a01a8 object required 'Item(...)' I investigated a little and i think that the problem is in the file…
Mattia Nocerino
  • 1,474
  • 1
  • 16
  • 33
17
votes
13 answers

Should new programmers learn ASP first or ASP.Net?

My colleague here argues that new programmers must learn ASP first, before they learn ASP.Net. I seem to agree with him as most new programmers who start with ASP.Net do not understand web get, post and state management :( Which is best to learn…
reva
  • 1,477
  • 2
  • 14
  • 23
17
votes
6 answers

String is not null, empty, or empty string

What is the quickest and easiest way (in Classic ASP) to check if a string has some string (that has a length greater than 0) i.e. NOT "Null", "Nothing", "Empty", or '' empty string
TruthOf42
  • 2,017
  • 4
  • 23
  • 38
17
votes
2 answers

How can I compare two dates in vbscript/ASP?

Using ASP classic, I need to somehow compare two dates with each other. How can I do this?
poo
  • 1,095
  • 4
  • 13
  • 21
17
votes
4 answers

How do I convert legacy ASP applications to ASP.NET?

We have a large ASP (classic ASP) application and we would like to convert it to .NET in order to work on further releases. It makes no sense continuing to use ASP as it is obsolete, and we don't want to rewrite it from scratch (Joel Spolsky tells…
Sklivvz
  • 30,601
  • 24
  • 116
  • 172
16
votes
7 answers

Asp Classic Include Once

Does ASP Classic have a feature that is the equivalent of PHP's "include once" feature?
C. Ross
  • 31,137
  • 42
  • 147
  • 238
16
votes
2 answers

Running ASP Classic on IIS 7.5

I need to do some work on an old ASP Classic site, so I’m trying to host it on my IIS, but when I try load a page I get: An error occurred on the server when processing the URL. Please contact the system administrator. If you are the system…
David
  • 191
  • 2
  • 2
  • 5
16
votes
3 answers

"Object required" when using Set in an assignment

call main() sub main() Dim scmd Set scmd = "c:\windows\system32\cscript.exe //nologo c:\s.vbs" createobject("wscript.shell").run scmd,0,false end sub It gives me error: Object required: '[string: "c:\windows\system32\"]' Code…
el ninho
  • 4,183
  • 15
  • 56
  • 77