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

Return SCOPE_IDENTITY() without using CreateParam

I'm trying this but getting an error ADODB.Recordset error '800a0e78' Operation is not allowed when the object is closed. on the line with this code If ScopeID.EOF Then Please do not answer to use the CreateParam method, Looking for a solution…
Control Freak
  • 12,965
  • 30
  • 94
  • 145
2
votes
1 answer

Accessing classic asp (http)context from a .net wrapped with COM interface?

I don't know if it's possible, but suppose you want to handle reading/writing of cookies on a classic ASP page from a COM object. The COM object is written in .net and wrapped with a COM interface to make it accessible from classic ASP. For…
Per Hornshøj-Schierbeck
  • 15,097
  • 21
  • 80
  • 101
2
votes
1 answer

How to Get the Time When IIS Started With Classic ASP?

How to Get the Time When IIS Started With Classic ASP?
Daniel Silveira
  • 41,125
  • 36
  • 100
  • 121
2
votes
2 answers

Microdata tagged page generates random question mark

I have recently tagged my 'events' pages on my site with microdata. Here's an example: http://www.semi-directory.com/semicon-china/g753 I confirmed the markup was correct by using Google's testing tool…
2
votes
6 answers

Classic ASP - Server Time vs. Local Time

I have a Classic ASP application that I am working with date cut offs. My server resides in Central Time, but I am in Eastern time. What happens is my app thinks it is an hour earlier and my cut offs are an hour late. I am sure they would be 2…
Dennis
  • 708
  • 2
  • 10
  • 25
2
votes
1 answer

Setting up multi-dimensional array in VBScript

I am converting a php program over to VBScript for ASP. I am stuck trying to find a way to structure a multi-dimensional array and could use some help. Here is how it sets up in the php version: // $_SESSION[model name][level name][menu name] =>…
2
votes
2 answers

Sort XML data in classic ASP

I want to sort below xml, Based on the Adult and child ( i need to take Adult and child as constant): Single 100 1
Alex
  • 1,933
  • 9
  • 36
  • 40
2
votes
3 answers

Malscript injection into SQL Server 2005 Database

I have a SQL Server 2005 database hosted on a shared hosting environment. Unfortunately for the last couple of months I have been having trouble with my application with some malicious scripts and html tags appended to the existing text in my…
Libin TK
  • 1,477
  • 2
  • 25
  • 46
2
votes
1 answer

What's the RegularExpression that validate more than one thing?

I am trying to create a custom RegularExpressionValidator to validate the current expression number(0-99).number(100-1000)\number(0-99).number(100-1000) or number(0-99).number(100-1000),number(0-99).number(100-1000) I am trying to create this…
user1291504
2
votes
3 answers

Response.write vs Document.write

Inside a classic asp page, I'm told that you can use vbscript or jscript. And jscript is just javascript. So I'm not sure what the difference is between Response.Write, Response.Write(), response.write(), and document.write() Does the…
user798719
  • 9,619
  • 25
  • 84
  • 123
2
votes
1 answer

Using json2.js inside classic ASP

Good day, I am confused as to when I am using VBScript, Javascript, and JScript inside classic ASP. I've been told that our environment uses JScript by default. So when we create a blank page with our company's standard includes, we just start…
user798719
  • 9,619
  • 25
  • 84
  • 123
2
votes
4 answers

ASP Upload Component - Classic ASP

I have just moved a site from a dedicated server to a GoDaddy shared hosting account, and have just encountered loads of problems! One being with ASP Upload. In Classic ASP, this is what I would normally do to upload files to my folder: Set upload =…
TheCarver
  • 19,391
  • 25
  • 99
  • 149
2
votes
3 answers

Calling Stored Procedure on classic ASP page

I've been struggling all day calling a Stored Procedure from a classic ASP page. I have a few basic noobie questions. First, is this the best way to add a parameter to my command: cmd.Parameters.Append cmd.CreateParameter("@SubmissionDate",…
Mike Cole
  • 14,474
  • 28
  • 114
  • 194
2
votes
1 answer

How can I compare performance of a classic ASP page rewritten in ASP .NET with JMeter or a profiler?

We have a classic ASP application that establishes a DB connection, executes a stored procedure into a recordset, and displays the results in an HTML table to the user. We have been having resource (ie. memory), and performance (users wait up to 10…
tresstylez
  • 1,809
  • 6
  • 29
  • 41
2
votes
2 answers

Integrate classic ASP with ASP.NET

I have a classic ASP site hosted on IIS and I need to add new pages to the site, but the new pages have to be ASP.NET; I created few pages put them in the same directory and they are working fine. My problem is the classic ASP and ASP.NET pages are…
user1097275
  • 137
  • 2
  • 9