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
16
votes
6 answers

How do I traverse a collection in classic ASP?

I want to be able to do: For Each thing In things End For CLASSIC ASP - NOT .NET!
Ronnie
  • 8,053
  • 6
  • 34
  • 34
16
votes
1 answer

How to prevent 'query timeout expired'? (SQLNCLI11 error '80040e31')

I have a connection to a MS SQL Server 2012 database in classic ASP (VBScript). This is my connection string: Provider=SQL Server Native Client 11.0;Server=localhost; Database=databank;Uid=myuser;Pwd=mypassword; When I execute this SQL…
16
votes
3 answers

Classic ASP text substitution and UTF-8 encoding

We have a website that uses Classic ASP. Part of our release process substitutes values in a file and we found a bug in it where it will write the file out as UTF-8. This then causes our application to start spitting out garbage. Apostrophes get…
Derek Ekins
  • 11,215
  • 6
  • 61
  • 71
16
votes
3 answers

How to upload files with asp-classic

I want to create a page with asp-classic where users can upload files or zipped folders. I've searched in Google but every solution I have found uses a third-party file. But I haven't been able to get those files to work.
polin
  • 2,745
  • 2
  • 15
  • 20
16
votes
3 answers

Set up 301 redirects from old classic ASP pages to new ASP.NET webforms pages

I've finished developing a website using ASP.NET Webforms and to finish it off I'm in the process of setting up some 301 redirects to ensure the old site's links are redirected properly. However, the old website was written in classic ASP. What is…
Leah
  • 2,547
  • 5
  • 23
  • 28
15
votes
3 answers

Is there any way to check to see if a VBScript function is defined?

This is probably just wishful thinking... Is there any way to check to see if an ASP/VBScript function is defined before calling it?
Matthew Cole
  • 1,329
  • 2
  • 18
  • 30
15
votes
9 answers

Regex to remove HTML attribute from any HTML tag (style="")?

I'm looking for a regex pattern that will look for an attribute within an HTML tag. Specifically, I'd like to find all instances of ... style="" ... and remove it from the HTML tag that it is contained within. Obviously this would include anything…
jkupczak
  • 2,891
  • 8
  • 33
  • 55
15
votes
1 answer

ASP (Classic) on Linux Chilisoft Replacement

Sun's One Server worked great up until Sun Disappeared. Now looking around the landscape the classic ASP solutions are all abadoned. Apache::ASP appears to be perl wrapped in ASP tags. Chilisoft ASP no longer exists. Old versions won't compile…
TelsaBoil
  • 584
  • 1
  • 6
  • 14
15
votes
3 answers

How to migrate applications from Classic ASP to ASP.NET MVC?

Currently, we have many web applications (external & internal) developed using Classic ASP through .NET 2.0 technologies. Each of those web applications have their own login screen authenticating against their own custom database or using Windows…
user756519
15
votes
9 answers

VBScript conditional short-circuiting workaround

I have a large classic ASP app that I have to maintain, and I repeatedly find myself thwarted by the lack of short-circuit evaluation capability. E.g., VBScript won't let you get away with: if not isNull(Rs("myField")) and Rs("myField") <> 0…
Kevin
  • 5,874
  • 3
  • 28
  • 35
15
votes
2 answers

IIS Express and Classic ASP

I'm trying to get a classic ASP site set up on IIS Express under Windows XP. I am able to get iis setup and running as well as setting up the site, but when I try to browse to an asp page all I get is: íP÷Pèö‚le”_/index.asp18 Has anyone come…
Brutus35
  • 573
  • 2
  • 6
  • 12
15
votes
6 answers

ASP Line-breaks - \n?

I have been searching for a way to insert linebreaks in my code for when I view my source. I am not looking for
Something like the PHP equiv to \n Any ideas on how to do this in ASP? I will be placing this inside a string.
user39980
15
votes
4 answers

How can I get the current domain in Classic ASP?

I want to get the current domain so if the page is http://www.domain.com/page.asp I need www.domain.com
Andrew G. Johnson
  • 26,603
  • 30
  • 91
  • 135
15
votes
2 answers

ASP check request method

How do i check if my form has been submitted in classic ASP?
Gabriel
  • 153
  • 1
  • 1
  • 4
15
votes
3 answers

Classic ASP: How to write unicode string data in classic ASP?

How can I show an nvarchar column that stores unicode data (Entered with the zawgyi1 font) in a classic ASP web page? When I retrieve and write the value to the page, it shows "?????". I set my ASP page's content type of UTF-8 with the following…
RedsDevils
  • 1,413
  • 9
  • 26
  • 47