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
12
votes
5 answers

Returning a string in Javascript

I am trying to create a simple function that will return the correct string when called: function getState(abbr){ if (abbr=="WY") { return "Wyoming"; } } and then the call is like this: var stateName = getState("WY"); However all that…
tree
  • 728
  • 3
  • 12
  • 22
12
votes
3 answers

VBScript / Classic ASP - How do I Check If a Property Exists in An Object Without Throwing an Error

Sample Code: Dim myObject Set myObject = JSON.parse(someJsonResponseFromTheServer) myFunction(myObject.someProperty) The Problem: When code similiar to this is ran in my application, it throws a 500 error from the server with a message similar…
Levi Hackwith
  • 9,232
  • 18
  • 64
  • 115
11
votes
4 answers

Identify if request is coming from local network (intranet)

I need to identify if a request comes from Internet or Intranet using either client-side or server-side. The problem I'm trying to solve is: our web site can be accessed from internet and intranet. The intranet user (user inside company), does not…
asalhani
  • 145
  • 1
  • 1
  • 8
11
votes
1 answer

Is there a split function in xpath?

I am trying to split a text from a node text1|text2|text3|text4 into four parts "|" as the delimiter and reconstruct 4 new nodes as follows.…
user357034
  • 10,731
  • 19
  • 58
  • 72
11
votes
4 answers

Cannot connect from Classic ASP to SQL Server 2008 R2 using SQL Native Client (Windows 7 - IIS7)

I'm able to connect to SQL server 2008 R2 when I use Provider=SQLOLEDB in my connection string. But when I use Provider=SQLNCLI in connection string I'm unable to connect. ADODB.Connection error '800a0e7a' Provider cannot be found. It may not be…
IsmailS
  • 10,797
  • 21
  • 82
  • 134
11
votes
2 answers

ASPSmartUpload v3.2

I have the unfortunate task of fixing a legacy ASP site that was migrated to Windows Server 2003, and I know nothing about ASP. The main issue appears to be with ASPSmartUpload, of which I have version 2.3 installed. According to…
tags2k
  • 82,117
  • 31
  • 79
  • 106
11
votes
6 answers

Debugger on wrong line when debugging Classic Asp

I'm having trouble debugging any ASP Classic website on my workstation using any of the MS debugging environments available to me. I'm on Win XP SP3, using the builtin IIS 5.1. It started a few weeks ago, and happens across multiple projects.…
Val
  • 2,291
  • 7
  • 34
  • 63
11
votes
3 answers

Can a VBScript function return a dictionary?

I have a dictionary of form data that I want to modify using a function. function queryCleanForm(myDictForm) dim arrayKeys arrayKeys = myDictForm.keys for i=0 to myDictForm.count-1 myDictForm(arrayKeys(i)) =…
quakkels
  • 11,676
  • 24
  • 92
  • 149
11
votes
3 answers

How do you allow parent paths in Visual Studio 2015?

I've opened an existing web application project from Visual Studio 2013 (which runs just fine), in Visual Studio 2015. When I run it from within Visual Studio 2015 I get: Active Server Pages error 'ASP 0131' Disallowed Parent Path…
TrevorBrooks
  • 3,590
  • 3
  • 31
  • 53
11
votes
0 answers

Object or Provider is not able to perform the requested operation

I am trying to run the classic asp application which uses RDS (Remote data service) on Windows Server 2008 Following is the code written in…
RemS
  • 272
  • 1
  • 9
11
votes
3 answers

Detecting null/empty input from user

How can I check if the user has input a null or empty string in classic-asp? Right now I am have this code. If Request.Form("productId") == "" Then 'my code here End If But its not working.
itsaboutcode
  • 24,525
  • 45
  • 110
  • 156
11
votes
4 answers

What are alternatives to generic collections for COM Interop?

I am attempting to return a collection of departments from a .NET assembly to be consumed by ASP via COM Interop. Using .NET I would just return a generic collection, e.g. List, but it seems that generics don't work well with COM…
Mike Henry
  • 2,401
  • 1
  • 25
  • 34
11
votes
8 answers

Get Classic ASP variable from posted JSON

I'm trying to post JSON via AJAX to a Classic ASP page, which retrieves the value, checks a database and returns JSON to the original page. I can post JSON via AJAX. I can return JSON from ASP. I can't retrieve the posted JSON into an ASP…
Will
  • 111
  • 1
  • 1
  • 4
11
votes
1 answer

Convert string to integer .asp classic

I have the following code, comments detail what should happen: averageNum = myArray2(0) 'assign variable response.write(TypeName(averageNum)&"
") 'check var type: string as expected averageNum = CInt(averageNum) 'convert to integer When I run…
StudioTime
  • 22,603
  • 38
  • 120
  • 207
11
votes
7 answers

Debugging with Response.Write in classic ASP

I am trying to debug some code using Response.Write, but when I run the code it skips over that statement and errors out at some point further in the code. How can I get my Response.Write statements to show without the other errors coming up?
chobo
  • 31,561
  • 38
  • 123
  • 191