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
2
votes
2 answers

how to write a DAL and BLL in c# for an old asp site written in VB

I would like to do a tremendous outcome with minimal effort: how do I write a Data Access Layer and Business Layers in C# for an old asp site written in VB. The problem in this regards the support of automatic typing between 2 different languages…
lionheart
  • 437
  • 11
  • 33
2
votes
2 answers

ASP my simple if statement is not working

I'm doing a simple a simple html site that I wrote which needed some php, however the server does not have php, only asp. Now I have to learn a bit of asp.
  • Adam
    • 8,849
    • 16
    • 67
    • 131
  • 2
    votes
    1 answer

    Run math on asp variables without getting type mismatch

    I'm trying multiply discount_v times item_qty + total_discount but i keep getting the error Microsoft VBScript runtime error '800a000d' Type mismatch. Can anyone tell me what I'm doing wrong, please! Here is the code I am using: total_discount =…
    Jesse
    • 239
    • 6
    • 20
    2
    votes
    2 answers

    Asp Classic Calling webservice with SOAP Request

    I'm trying to get a response from a ASP.NET webservice without using the get parameters. I have the following code. strBarcode = "ABC123 strURL ="http://serverName/BarcodeGenerator.asmx" Set xmlReq =…
    C. Ross
    • 31,137
    • 42
    • 147
    • 238
    2
    votes
    2 answers

    Replace words from querystring with Regular Expressions

    the string is = "Reg.asp?q=RG_Price=5000*8000,Activated=1" and i want to replace "RG_Price=5000*8000" with that "Price BETWEEN 5000 AND 8000". Is that possible with Regular Expressions in ASP ?
    user113709
    2
    votes
    2 answers

    Methods for flood control on error emails

    In most of the websites I develop I add something to notify me by email of any 500 errors. However, when something goes really wrong, I can get dozens of these error emails (once I got thousands). So I want to implement some form of flood control. I…
    johna
    • 10,540
    • 14
    • 47
    • 72
    2
    votes
    1 answer

    RegEx in Classic ASP to find out if the URL has a particular string

    I have to do a site redirect through script for about 10 different URLS all containing the string "enterpriseloyalty". I'm trying to write some RegEx to find out if the URL has this in it. To do so, I'm using a function I found on another question…
    James
    • 3,765
    • 4
    • 48
    • 79
    2
    votes
    1 answer

    Classic ASP XLS output with carriage return in cell

    I have a Classic ASP script that outputs an HTML table as an XLS file but have had no luck getting a carriage return/line feed to work within a single cell. For testing I am using code based on Kristof's response to How to output an Excel *.xls file…
    Code Monkey
    • 335
    • 3
    • 8
    2
    votes
    1 answer

    SQL Select statement wont return char fields only numeric fields

    I have been racking my brain over this all day today. I have the following ASP code that uses a Request.Querystring input from a dropdown box to launch a select statement. The querystrinch does show in the ?= URL but will only work on columns in…
    user1188287
    • 25
    • 1
    • 3
    2
    votes
    1 answer

    Lcase operation on array taking too long

    I'm working with a script designed to compare values returned from a form against values from a database dumped to an array, via GetRows. The purpose of the check is to compare form values against database values and only update the matching ids'…
    buck1112
    • 504
    • 8
    • 24
    2
    votes
    1 answer

    How to create ASP project in Visual studio

    Is it possible to create an "ASP only" project in visual studio with any version? I know "ASP" is an old technology even though we have some "asp" projects. So can any one help me software requirements for "ASP". (If I search in google it will…
    sathishkumar
    • 1,780
    • 4
    • 20
    • 31
    2
    votes
    1 answer

    ASP / VBS - Background Tasks

    On a Windows 2003 server, I want a scheduled task that calls a VBS page every 3 minutes, running a script in my website application. The website script is written in classic ASP, and checks for uploaded files that can be converted in to different…
    TheCarver
    • 19,391
    • 25
    • 99
    • 149
    2
    votes
    2 answers

    Read XML using ASP/JavaScript

    I will send some information from one site to another site. I have an XML generated, using the script below. How can I read the XML into readxml.asp? var xmlServer = "http://www.****/readxml.asp"; var xmlStr =…
    Freexel
    • 53
    • 5
    2
    votes
    3 answers

    Get the variable name Classic ASP

    I've written an open source debug class for Classic ASP(VBScript) + firephp and want to know if it's possible to obtain the name of a variable that's been passed to a function? I've searched but can't seem to find any tricks to do…
    David Meagor
    • 117
    • 2
    • 11