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

Dockerize ASP Classic on IIS

Microsoft has been investing in running docker on windows with Docker Desktop for Windows. Is it possible to run a legacy ASP Classic application on IIS through Docker? How? https://hub.docker.com/r/microsoft/iis/
30
votes
7 answers

"Operation is not allowed when the object is closed" when executing stored procedure

This is my stored procedure, and when I am calling it from my classic ASP code, I am getting the error: Operation is not allowed when the object is closed. when I try to do a record count. Does anyone know what is wrong here? I am trying to…
omega
  • 40,311
  • 81
  • 251
  • 474
29
votes
3 answers

How to guide for getting a classic asp application working under IIS 7.0

I am looking for a nice easy step by step "How To" guide for getting a classic asp application working under IIS 7.0. It is on a 64 bit windows server 2008 machine if that makes any difference.
GordyII
  • 7,067
  • 16
  • 51
  • 69
29
votes
6 answers

File URL "Not allowed to load local resource" in the Internet Browser

I've got a major brainteaser. I want to open a file in classic ASP. I'm using various variables because things can change but the outcome is correct. I know this because I've tested the outcome by copying the linkadress and placing it in my URL. Now…
Benny Niemeijer
  • 349
  • 1
  • 3
  • 15
28
votes
4 answers

SQL group_concat function in SQL Server

If there is a table called employee EmpID EmpName ---------- ------------- 1 Mary 1 John 1 Sam 2 Alaina 2 Edward Result I need in this format: EmpID …
Gurvinder
  • 760
  • 2
  • 8
  • 16
28
votes
15 answers

Response.Write vs <%= %>

Bearing in mind this is for classic asp Which is better, all HTML contained within Response.Write Statements or inserting variables into HTML via <%= %>. Eg Response.Write "" & vbCrlf Response.Write "" &vbCrLf Response.Write "
Jon P
  • 19,442
  • 8
  • 49
  • 72
28
votes
7 answers

Calling REST web services from a classic asp page

I'd like to start moving our application business layers into a collection of REST web services. However, most of our Intranet has been built using Classic ASP and most of the developers where I work keep programming in Classic ASP. Ideally, then,…
Louis Salin
  • 531
  • 1
  • 5
  • 8
27
votes
6 answers

Check if an Object exists in VBScript

I'm maintaining a Classic ASP app written in VB Script by an outside company long, long ago. I have an array of imagefile paths, like so: dim banners, arrKeys, i set banners=CreateObject("Scripting.Dictionary") banners.Add "banner1.jpg",…
Armstrongest
  • 15,181
  • 13
  • 67
  • 106
27
votes
14 answers

ASP.NET MVC reminds me of old Classic ASP spaghetti code

I just went through some MVC tutorials after checking this site out for a while. Is it just me, or does MVC View pages bring back HORRIBLE flashbacks of Classic ASP spaghetti code with all the jumping in and out of HTML and ASP.NET with yellow…
RichC
  • 7,829
  • 21
  • 85
  • 149
25
votes
6 answers

will visual studio 2010 support classic asp?

I'm using visual studio 2008 for a classic asp application. Will I be able to upgrade to visual studio 2010?
Ryan
  • 4,602
  • 8
  • 37
  • 43
25
votes
4 answers

ASP/VBScript - Int() vs CInt()

What is the difference in ASP/VBScript between Int() and CInt()?
Seibar
  • 68,705
  • 38
  • 88
  • 99
25
votes
6 answers

Difference between asp and asp.net

What is the difference between asp and asp.net?
Domnic
  • 3,817
  • 9
  • 40
  • 60
25
votes
5 answers

Commenting code in ASP Classic

The way I know of hashing out code within ASP Classic is <%-- --%>. Would this be correct? Or is there another way?
Developer Jay
  • 953
  • 1
  • 10
  • 15
24
votes
3 answers

Create classic asp project in Visual Studio 2010 from scratch

I have always developed on ASP.NET on 2.0 and higher .NET framework. I am trying to create a website in classic ASP from scratch using VS2010 and can't figure out how to do that. Thanks
Jags
  • 1,466
  • 1
  • 18
  • 33
24
votes
4 answers

ASP.NET_SessionId vs .ASPXAUTH why do we need both of them?

Can't we just store in the session if the user is logged in or not and get rid of the .ASPXAUTH?
Daniel Gartmann
  • 11,678
  • 12
  • 45
  • 60