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
23
votes
8 answers

How do I POST data to a remote URL in Classic ASP?

I need to POST data to a url in the middle of a script. User fills out form: Form submits to process.asp: I need to POST data to a 3rd Party integration at this point. process.asp finishes and directs user to thank you page.
nrhammond
  • 233
  • 1
  • 2
  • 4
23
votes
3 answers

Returning early from a function in classic ASP

Is there a way to return early from a function in classic ASP rather than it run the full length of the function? For example lets say I have the function... Function MyFunc(str) if (str = "ReturnNow!") then Response.Write("What up!") …
Rob Segal
  • 7,515
  • 12
  • 43
  • 72
22
votes
6 answers

Count how many specific characters in string

I have a search box. My admin user might search for "@MG @EB dorchester". In ASP, I need to count how many times the symbol "@" appears in the string. How is the possible?
TheCarver
  • 19,391
  • 25
  • 99
  • 149
22
votes
4 answers

Case Statements versus coded if statements

What is more efficient - handling with case statements in sql or handling the same data using if statements in code. I'm asking because my colleague has a huge query that has many case statements. I advised her to take stress off of the DB by coding…
Eric
  • 7,930
  • 17
  • 96
  • 128
22
votes
9 answers

Getting Error 800a0e7a "Provider cannot be found. It may not be properly installed."

So I am going back to a project I created in College, so I can transfer it to PHP. I orginally coded it in ASP Classic. I am on Windows 8 and running Access 2013. I am currently getting the following error ADODB.Connection error '800a0e7a' Provider…
Skrilliam
  • 233
  • 1
  • 2
  • 8
22
votes
1 answer

Conversion failed when converting from a character string to uniqueidentifier

Created a stored procedure in SQL 9 (2005) and have since upgraded to SQL 10 (2008). Since then, the following stored procedure has stopped working and thrown up the above error: ALTER PROCEDURE [dbo].[GetModifiedPages] @vPortalUID …
jamesmhaley
  • 44,484
  • 11
  • 36
  • 49
20
votes
10 answers

Server-side comments: What's the equivalent of <%-- --%> in ASP Classic?

What's the equivalent of <%-- --%> in ASP Classic? I have to modify a legacy ASP application and I'd like to comment out a block of HTML: some table cell I'd like to comment out, including some <%= inlineServerSideVBScriptExpressions()…
Heinzi
  • 167,459
  • 57
  • 363
  • 519
20
votes
6 answers

Classic ASP Sending errors to browser does not work on IIS7 for remote connections

I can’t get detailed error reporting for IIS7 for ASP pages on a remote browser connection. However, when I run the page locally on the server I do see a detailed error message. I have enabled Send Errors To Browser but IIS keeps sending an internal…
Joseph Bi
  • 1,166
  • 2
  • 9
  • 11
20
votes
5 answers

Response.Redirect HTTP status code

Why is it that ASP/ASP.NET Response.Redirect uses a HTTP-302 status code ("Moved Temporarily") even though in most cases a HTTP-301 status code ("Moved Permanently") would be more appropriate?
Vinz
  • 2,010
  • 1
  • 13
  • 16
20
votes
1 answer

Asp Classic return specific http status code

How can I return a specific http status code from an asp classic?
C. Ross
  • 31,137
  • 42
  • 147
  • 238
19
votes
6 answers

How to enable ASP classic in IIS7.5

I am running IIS 7.5 in Windows 7 and have already gone into "Turn Windows features on or off" and enabled ASP in "Internet Information Services/World Wide Web Service/application Development Features". Once I did that I started getting an HTTP 404…
Brandon
  • 890
  • 2
  • 13
  • 32
19
votes
4 answers

SQL Server Pre-Login Handshake Acknowledgement Error

We have a production website with a mixture of classic ASP, inline .Net and compiled .Net that talks to a SQL Server instance where both are VMs on the same physical box and everything there works great. In order to do some testing with new features…
Scott Salyer
  • 2,165
  • 7
  • 45
  • 82
19
votes
3 answers

Get SQL Server schema via a SQL query?

I've inherited a clunky and horribly un-documented site from a bad developer and am trying to get a look at the database schema. Unfortunately the web host is the worst I've ever dealt with and has no control panel capability for viewing the db…
Jeff
  • 2,794
  • 8
  • 30
  • 35
19
votes
1 answer

How do I use MSXML2.ServerXMLHTTP to grab data from another site?

We have the folowing link: http://mvp.sos.state.ga.us/ Rather than create a db to replicate information that MVP page, we would like to use our own form, and then behind the scenes, send information to the site above to get results back using…
Chidi Okeh
  • 1,537
  • 8
  • 28
  • 50
18
votes
8 answers

IIS7 - only serves up one page at a time. It's a making me crAzY!

Situation: Classic ASP application, using a custom Application Pool. Default settings. On some IIS7 machines, IIS decides to serve only one page at a time. So if multiple load any pages from a site, each one has to load in succession. e.g. If I…
Michael Pryor
  • 25,046
  • 18
  • 72
  • 90