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

Classic ASP: I'm getting a type mismatch error when I shouldn't

I have a function for turning HTML encoded text back into HTML. It works great normally, but for some reason, I try to use it on some text today, and get the following error: Microsoft VBScript runtime error '800a000d' Type mismatch:…
James
  • 3,765
  • 4
  • 48
  • 79
12
votes
3 answers

Tool to convert ASP to PHP

I program mostly in PHP and have a site along with other samples in ASP I need to convert over to PHP. Is there some kind of "translator" tool that can either enter lines of code or full slabs that attempts to output a close PHP…
Peter Craig
  • 7,101
  • 19
  • 59
  • 74
12
votes
5 answers

Sharing login-system between classic ASP and ASP.Net

A client uses classic ASP to log in to their web based backoffice. I have written a new ASP.Net app to be included in the backoffice, and I need to utilize the already existing login-system, so that when they are logged in there, they don't need to…
Kjensen
  • 12,447
  • 36
  • 109
  • 171
12
votes
3 answers

Request versus Request.QueryString

What is the difference between these two in VBScript: Request("startDate") Request.QueryString["startDate"] And where is Request("startDate") documented? I don't see this usage here: http://www.w3schools.com/asp/asp_ref_request.asp
Baz
  • 12,713
  • 38
  • 145
  • 268
12
votes
9 answers

Password mismatch while logging to sql server

Alright, I have a classic asp application and I have a connection string to try to connect to db. MY connection string looks as follows: Provider=SQLOLEDB;Data Source=MYPC\MSSQLSERVER;Initial Catalog=mydb;database=mydb;User Id=me;Password=123 Now…
user194076
  • 8,787
  • 23
  • 94
  • 154
12
votes
4 answers

using classic asp for regular expression

We have some Classic asp sites, and i'm working on them a lil' bit, and I was wondering how can I write a regular expression check, and extract the matched expression: the expression I have is in the script's name so Let's say this Response.Write…
Itai Sagi
  • 5,537
  • 12
  • 49
  • 73
12
votes
2 answers

What is required for an IIS site to send error details to the browser?

I am receiving a Server Error on an ASP Classic site running on IIS 7.5. I have "Send Errors To Browser" set to True, however I still receive the following error screen:
smartcaveman
  • 41,281
  • 29
  • 127
  • 212
12
votes
1 answer

How to profile a classic ASP web site?

I have a classic ASP (JScript) web-site that is running slow and are there any profilers that can help me identify what is taking time? Other hints on how to optimize or debug ASP performance issues would be helpful.
John
  • 121
  • 1
  • 4
12
votes
4 answers

Session integration, is this approach secure?

A user logs in using default Laravel authentication, which puts an encrypted cookie in the browser, and saves the session in the database. The user moves to a classic asp page, where I check the cookie value, get the hash, and call the laravel app…
Positonic
  • 9,151
  • 14
  • 57
  • 84
12
votes
1 answer

Can't connect to server over HTTPS which uses a SHA2 certificate using MSXML2.ServerXMLHTTP

We updated our SSL certificate to SHA2, but the intermediate certificate was SHA1. Chrome and other browsers have decided that the entire chain must be SHA2. Our customers were calling concerned about the yellow caution in the address bar. Rumor has…
12
votes
2 answers

Iterate through a VB6 Dictionary

I'm a non-VB6 person who had the misfortune of inheriting a buggy legacy VB6/Classic ASP project. There's a section where a lot of entries are put into a Dictionary and I want to see all it contains. I tried this (oParams is a Dictionary): Dim o As…
Dinah
  • 52,922
  • 30
  • 133
  • 149
12
votes
2 answers

HTTP/1.1 New Application Failed

i just moved from my old host to Godaddy, which seems to be a worst web host with no support. i moved my asp website (written in classic asp) to the new godaddy windows hosting. but when i run the site i get the below error HTTP/1.1 New…
LiveEn
  • 3,193
  • 12
  • 59
  • 104
12
votes
3 answers

Is there an open source web based management for MS SQL server?

Does anyone know of a web based MS SQL manager (in ASP.NET or classic ASP)? I'm getting sick of using their studio software, and use MySQL a lot too, so I'm used to the web based management. Thanks :)
will
  • 476
  • 1
  • 3
  • 15
12
votes
2 answers

HTTP GET Request, ASP - I'm lost!

Using VBScript with ASP I am trying to set up an HTTP GET Request which will visit a page which in turn generates a line of ASCII (non-HTML). I then want to extrapolate that ASCII line which will have 4 values delimited by semicolons back into 4…
Tracy
  • 123
  • 1
  • 1
  • 4
12
votes
3 answers

get current url of the page (used URL Rewrite)

I am working on classic asp application. I have use URL rewrite on some pages. How can i get current url of the page in classic asp? Example: http://www.site.com/page.asp ---> url rewrite in IIS ---> http://www.site.com/home/page so here i want…
Maddy
  • 907
  • 3
  • 10
  • 25