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

How create XML from XML using XSL?

How create XML from XML using XSL ? I try like this.. but i not get a result Test.xml
Alex Mathew
Test.xsl
Alex
  • 1,933
  • 9
  • 36
  • 40
14
votes
6 answers

How to generate MD5 using VBScript in classic ASP?

I need to generate an MD5 in my application. I've tried google but only find PHP code for MD5. I need to connect to a client system that validates using MD5 hash but their code is in PHP, mine is in Classic ASP using VBScript. My server is .Net…
user1270384
  • 711
  • 7
  • 24
  • 53
13
votes
2 answers

Getting environment variables in Classic ASP

How can I get the value of a custom environment variable in a classic ASP page using VBScript?
MikeWyatt
  • 7,842
  • 10
  • 50
  • 71
13
votes
6 answers

How exactly do you configure httpOnly Cookies in ASP Classic?

I'm looking to implement httpOnly in my legacy ASP classic sites. Anyone knows how to do it?
Eduardo Molteni
  • 38,786
  • 23
  • 141
  • 206
13
votes
4 answers

Does IIS Express support Debugging Classic ASP?

I recently installed Visual Studio 2010 SP1 BETA, ASP.NET MVC 3 RC2 and IIS Express. I successfully got an MVC 3 project running along with classic ASP pages in the project with IIS Express. I was wondering if there is a way to set up Classic ASP…
13
votes
4 answers

Outputting a GUID in VBScript ignores all text after it

I'm creating a GUID for use in a Classic ASP application, by using TypeLib. However, even a simple test such as writing the GUID out to the screen is giving me problems - it prints the GUID but ignores everything after it (e.g. HTML tags,…
Wayne Molina
  • 19,158
  • 26
  • 98
  • 163
13
votes
1 answer

ASP - How to get URL of Referring Site

This is an ASP question, not ASP.Net. Assume there are two sites: www.domain-1.com www.domain-2.com www.domain-1.com has a redirection URL in IIS that points to www.domain-2.com. In www.domain-2.com, I need to know the URL of the referring site…
StackOverflowNewbie
  • 39,403
  • 111
  • 277
  • 441
13
votes
1 answer

Format current date and time in VBScript

I was wondering if someone could help me. I'm very new at ASP I want to format the current date and time as follows: yyyy-mm-dd hh:mm:ss But all i can do is the following Response.Write Date Can someone help me out please.
BigJobbies
  • 3,633
  • 11
  • 43
  • 66
13
votes
3 answers

using "on error resume next" in classic ASP, and how to handle errors

Good day all, I would like to ask a thing about on error resume next let's assume we have a loop to navigate through a recordset like: Do while not rs.EOF query = "UPDATE ...." conn.execute(query) rs.movenext loop i would like to be sure…
Matteo Bononi 'peorthyr'
  • 2,170
  • 8
  • 46
  • 95
13
votes
9 answers

A good IDE for classic ASP?

I'm using Dreamweaver, but it doesn't give me classes, functions, subs names when I am starting to write.. Are there any good alternatives?
user212098
  • 133
  • 1
  • 1
  • 4
13
votes
4 answers

In classic ASP, is there a way to handle errors at application level?

In classic ASP, is there a way to handle error at application level? Is there guidelines for handling error / exceptions in classic ASP 3 ? The Server.GetLastError() not a lot to work with... I am looking for something like the Application_Error()…
PBelanger
  • 1,269
  • 1
  • 13
  • 24
13
votes
5 answers

FileSystemObject - Reading Unicode Files

Classic ASP, VBScript context. A lot of articles including this Microsoft one, say you cannot use FileSystemObject to read Unicode files. I encountered this issue a while back, so switched to using ADODB.Stream instead, per the ReadText example…
AdaTheDev
  • 142,592
  • 28
  • 206
  • 200
13
votes
3 answers

Classic ASP amazon s3 rest authorisation

I am confused on what I am doing wrong here... <% Const AWS_BUCKETNAME = "uk-bucketname" Const AWS_ACCESSKEY = "GOES HERE" Const…
Chris Dowdeswell
  • 858
  • 2
  • 11
  • 25
13
votes
1 answer

How to check form submission ASP classic

I'm setting up a form in ASP classic and it will reload after submission (action self) But this time it shows results of previous submissions, so how can I check that a POST submission has been made? Like in PHP: if($_POST['submit']) { show…
Th3Alchemist
  • 1,161
  • 2
  • 13
  • 25
12
votes
3 answers

How to set IIS website's default encoding?

My website is a combination of classic ASP and ASP.NET My pages' default encoding is currently ISO-8859-1. Even if there's no tag, the response page will be encoded ISO-8859-1. How to change it to UTF-8?
Scott 混合理论
  • 2,263
  • 8
  • 34
  • 59