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

Send HTML email asp

I want to add some html in an email. I've tried the following. vFromName = "someone" vFromAddress = "someemail" vTo = "recipient" vSubject="someSubject" vBodyofemail = "
SomeText
" Call…
Eric
  • 7,930
  • 17
  • 96
  • 128
3
votes
2 answers

Getting Referer from Custom 404 page

The custom 404 error only gives you the page that was not found when using Request.Servervariables("QUERY_STRING") , Well aware of this. But how do you get the referer of that page? Request.Servervariables("HTTP_REFERER") in the custom 404 error…
Control Freak
  • 12,965
  • 30
  • 94
  • 145
3
votes
9 answers

Problem calling stored procedure from another stored procedure via classic ASP

We have a classic ASP application that simply works and we have been loathe to modify the code lest we invoke the wrath of some long-dead Greek gods. We recently had the requirement to add a feature to an application. The feature implementation is…
3
votes
1 answer

find what Server.CreateObject is trying to make

I am porting a windows 2003 app to windows 2008r2. It is a classic ASP app. On line 32 of awebpage.asp the following code is used: Server.CreateObject("some.custom.name.here") When running the page in a browser I get the following error Server…
zortacon
  • 617
  • 5
  • 15
3
votes
3 answers

Classic ASP: ASPSessionID is reused

I know how to handle this in ASP.NET, but is there a way to force the Classic ASP Session ID to be cleared? It is a randomly generated ID like ASPSESSIONIDG32423E that does not seem to be available in RESPONSE.COOKIES collection thus I can not…
Brian Edwards
  • 413
  • 7
  • 15
3
votes
2 answers

Class ASP with JavaScript - handle the condition when a query param in Request.QueryString is missing

Possible Duplicate: Finding out if a URL param exists in JS-ASP this may be very fundamental but, in the code below, the if branch is to cover the abnormal situation which the hitting request miss the query parameter of "name", like…
Lyn
  • 699
  • 1
  • 7
  • 17
3
votes
1 answer

Given a datehow do I get the first and the last date of that month using classic asp

I have a date field in the database that store values in format mm/dd/yyy. Using this how can I get the first and the last day of a given date. I'm using this following code to display records from database <% sql="select * from order_details where…
Leroy Mikenzi
  • 792
  • 6
  • 22
  • 46
3
votes
1 answer

VS2008 Debug ASP and ASP.net together

Is there any way to debug both classic ASP and ASP.net applications from visual studio to allow me to breakpoint on an ASP line of code and an ASP.net one too? This is for a legacy system which has older classic asp components and newer ASP.net…
Mark H
  • 707
  • 1
  • 11
  • 21
3
votes
3 answers

I can no longer debug classic asp code with visual studio 2008

I've finally found a way to debug classic asp code in visual studio 2008 ... but... has anybody been able to debug asp classic code with visual studio 2005 or later? ... but ... it only lasted a few days... I'm following these…
opensas
  • 60,462
  • 79
  • 252
  • 386
3
votes
1 answer

asp #include, and error console for asp?

I'm trying to understand ASP but #include doesn't seem to work for some reason. I'm using IIS 7.5 (included with Win 7). I have two .asp files in .../wwwroot/MyWeb/. I'm trying to #include FiboRecursive.asp in a file called test.asp. Both files work…
Lurifaxel
  • 674
  • 6
  • 17
3
votes
3 answers

Other way to Debug ASP Classic (VBScript) aside from Attaching Process using Visual Studio

Is there any other means to debug an ASP Classic application using Visual Studio? Right now, I have a classic ASP application and I use the IIS 5 of WinXP. I debug the ASP application right now by attaching the DLLHOST.EXE from (Debug > Attach…
Nap
  • 8,096
  • 13
  • 74
  • 117
3
votes
2 answers

CWBZZ5008 Security error occurred when attempting to connect to system

We have an ASP Classic legacy web application, which is hosted in Windows Server 2003 in IIS, that connect in our database server, which is an AS/400. We've just currently upgrade our database server from v5r4m0 to v6r1m0, so we install an update in…
John Isaiah Carmona
  • 5,260
  • 10
  • 45
  • 79
3
votes
1 answer

Using amazon SES to send email in classic asp

I'm trying to send a test email with Amazon SES but to no luck: Dim iMsg, iConf, Flds Set iMsg = CreateObject("CDO.Message") Set iConf = CreateObject("CDO.Configuration") Set Flds = iConf.Fields Const cdoSendUsingPort = 2 With…
greener
  • 4,989
  • 13
  • 52
  • 93
3
votes
2 answers

Form action --when calling HREF

I have a basic question about the form action. Consider the below code here, just ignore the syntax if any.
Code testing First name:
Last…
user1050619
  • 19,822
  • 85
  • 237
  • 413
3
votes
2 answers

How to setup MVC routes to handle old ASP classic pages redirects

I'm migrating a ASP classic site to ASP.net MVC. Is there a way to redirect the old traffic to the new one? Example: how to go from: www.mydomain.com/viewpage.asp?pageid=1234 to: www.mydomain.com/page/1234
Eduardo Molteni
  • 38,786
  • 23
  • 141
  • 206