Active Server Pages (ASP) is Microsoft’s first server-side engine for dynamic web pages. ASP’s support of the Component Object Model (COM) enables it to access and use compiled libraries such as DLLs. It has been superseded by ASP.NET, but will be supported by Internet Information Services (IIS) through at least 2022.

Share tech news, updates, or what's on your mind.

Sign up to Post

Hi there, I have been looking around but unable to find specifically what I want...

I have an ASP Classic website (tables, rows, columns, not div) and I want to add expand and collapse fields

found plenty for div, but not much (that make any sense) for tables, any help on this would be great
CompTIA Network+
LVL 12
CompTIA Network+

Prepare for the CompTIA Network+ exam by learning how to troubleshoot, configure, and manage both wired and wireless networks.

I am pulling my hair out on parsing a JSON API response (from ShipStation) due to the arrays within the response object.  I have always used a JSON parser (from which works perfectly for accessing the various items in a JSON object, however it does NOT work with arrays because of the fact that it is using JScript one cannot loop with a variable index.

I have tried a few other JSON classes but still had no success in being able to easily loop through each order and pull the relevant order information for each.

Below is a sample of the JSON response from the API. Can someone please help me loop through the orders (only 2 orders in the array in the sample below), and populate all the necessary order variables on each loop, such as OrderID, Customer info, billing/shipping addresses, line items ordered, priciing etc.

Open in new window

Looking for a sql server/classic asp expert to look at my results code on the link below to suggest changes for efficient querying.  We have a very big day coming up soon with one event of over 6000 participants and I want to know if my code is optimized to avoid logjams.  This is something that I would be willing to entertain bids on.

Thank you!.
I have a job that I would like to get bids on...if that still happens on this site.  Here is what I need:

I need this page ( to "scroll" vertically in marquee fashion for large screen display at races.  All I really need is the data table...or the data in the data be visible.  Please let me know if you would be able to help me and what it would cost me.  I have tried to get this going in the "normal" process of doing it myself with EE help but, due to my weakness in JQuery, I just haven't gotten there.

Let me know if you have questions or if you can help me.
Hello, All;

Active Server Pages error 'ASP 0126'
Include file not found
/cs/Header.asp, line 3
The include file '../Imported_Data/ACN.asp' was not found.

Code Line
<!--#include virtual="../Imported_Data/ACN.asp"-->

Open in new window

OK. I have been using this for years, and it still works on my Win2016 Server.
However, running it on my development system, of which is a Win10 Pro.
No longer works.
Enable Parent Paths
Is Enabled in IIS, for the Default Web Site, and all sub sites.

WHAT in the heck did Microsoft do, in the last update to break this?

The actual path of the files is stores in

I reference this location with all my sites.
And have NEVER had an issue, until the most recent Windows 10 update, and now it is broken.
At least on my Win10 system.
As stated, it all still works under my Win2016 servers.

Any idea on what can be done in order to get this back working again?
I would really hate to re-code all sites, just because of this one stupid issue.

I have an asp page which has several fields and I got stuck at drop down button which has to populate data from a query.
But whenever I wrote some code taken from different examples from online I will get http404 error.

How to overcome it.
 my sql query is select cur_date_str,cur_effective_date from tblmovedate; where I need drop down to be filled with cur_effective_date data.

Please help me
Any help to this problem?
Experts -

I need a countdown timer in classic asp from 10 seconds to 0. (Without page refresh)

In a DIV  (<p>)- I will need to say "Kindly allow 10 seconds for Request creation..., " Here the 10 should count down to 0. and Once it becomes 0, it should change the <p> text to "Request created".

I understand there are alot of timers available in js/jquery but my ask is unique and peculiar and i dont want the page / body to refresh every 10 seconds or so.

Kindly help.

We have the following Javascript code that is used on our intranet to hide/show side menus.

This code has been working perfectly fine for the last year or so and was written by someone who no longer works for the company. However over the past couple of days the side menus have stopped working in Google Chrome on all computers.

We are getting the following error:


function show(menuChoice)
		var el = document.getElementById(menuChoice);
		if ( != 'none' )
				Animation(document.getElementById(menuChoice)).to('height', '0px').to('opacity', 0).hide().go();
				Animation(document.getElementById(menuChoice)).to('height', 'auto').from('0px').to('width', 'auto').from('0px').to('opacity', 1).from(0).blind().show().go();

function hide(menuChoice)
		var el = document.getElementById(menuChoice);
		if ( != 'none' )
				Animation(document.getElementById(menuChoice)).to('height', '0px').to('opacity', 0).hide().go();

Open in new window

Thanks, Greg
Hi there.

I'm working on a recordset that is supposed to pull 20 records a time from thousands of records. Why? Do make an overview list load fast. So far I had a query pulling all records, and that takes 15 seconds to load. I use classic asp and VB.
I found a well working example how to load the data and navigate in the loaded data, and it loads fast enough. Now I have to implement the search options I used to have with parameters from user input. And I have some trouble making the script work. I hope you can help. I probably made some syntax errors. Here's my code:

    'Set how many records per page we want
    Const NumPerPage = 20

    'Retrieve what page we're currently on
    Dim CurPage
    If Request.QueryString("CurPage") = "" then
        CurPage = 1 'We're on the first page
        CurPage = Request.QueryString("CurPage")
    End If
    Dim conn, ConnString
    ConnString = MM_conmelanom_STRING
	Set conn = Server.CreateObject("ADODB.Connection")

	Set rs_cmd = Server.CreateObject ("ADODB.Command")
	rs_cmd.ActiveConnection = MM_conmelanom_STRING

	rs_cmd.CommandText = "SELECT * FROM view_dataedit WHERE patient_id LIKE ? AND (SUBSTRING(cprnr,1,6)+SUBSTRING(cprnr,8,4)) LIKE ? AND initialer LIKE ? AND regime LIKE ? ORDER BY sortid DESC" 
	rs_cmd.Prepared = true
	rs_cmd.Parameters.Append Recordset1_cmd.CreateParameter("param1", 200, 1, 20, "%" & Recordset1__MMColParam & "%") ' adVarChar

Open in new window

Introduction to R
LVL 12
Introduction to R

R is considered the predominant language for data scientist and statisticians. Learn how to use R for your own data science projects.

Hi all,

I have a new server with windows 2016, and I need to copy across an small number of ASP websites.

So, starting with a single website, I installed all the necessary files and ran the site. When loading a page that connects to an SQL server database, an error occurs and I get a link to a website assuming that ASP is not activated.

To verify that it is, I have loaded a test .asp page and it does load correctly.

I think the issue is related to MDAC, I have tried to install version 2.8 but I can't tell if it actually did install or not. I can't confirm this is the issue but do believe it is database related.

Has anyone else encountered a similar issue, and resolved it?

Any help is appreciated.

We just upgraded to Exchange 2016 from Exchange 2010 and all of our CDO mail-enabled Classic ASP sites are no longer sending mail properly.  As far as I can tell the emails just end up in the BadMail folder on the webserver.  Any direction is most appreciated!  This is a time sensitive issue for us.


    Set iMsg = CreateObject("CDO.Message") 'calls CDO message COM object
    Set iConf = CreateObject("CDO.Configuration") 'calls CDO configuration COM object
    Set Flds = iConf.Fields
    Flds( "") = 1 'tells cdo we're using the local smtp service
    Flds("") = "e:\inetpub\mailroot\pickup" 'verify that this path is correct
    Flds.Update 'updates CDO's configuration database
    Set iMsg.Configuration = iConf 'sets the configuration for the message
    iMsg.To = ""
    iMsg.CC = ""

    sEmailBody = "Please find the attached file for checks dated " & sCheckDate & vbcrlf & vbcrlf & sContent
    iMsg.AddAttachment "e:\Inetpub\wwwroot\CBCHECK\data\ARS311584621i.txt"
    iMsg.From = "" 'must be ""
    iMsg.Subject = "FE - CBCHECK - " & sCheckDate 
    iMsg.HTMLBody = sEmailBody

    iMsg.Send 'commands CDO to send the message

Open in new window

Is there a way to execute a classic asp form submission on a schedule with a timer (ie: submit the form every 30 seconds)?  I have a vb6 application that puts race results online every 30 seconds and I want to send individual results emails automatically from the web site without having to click the submit button.

Is there a way to take a page with a jquery data table and have it scroll through the page (top to bottom) continuously?  I have race results pages that I would like to display on race day so that folks can view their results by watching the results scroll by.  Here is a current results page with a jquery table that does NOT scroll:

I would "clean the page up" for the scrolling page so that it is just the table.

If there is not a data table solution to this, is there another approach I can use to have this happen?

Thank you in advance!
I have a Classic ASP web page, containing a simple data entry form, plus another ASP script to process the form's input, and insert that input to a database table. Everything is working just fine.

Now, I would like to have two combo boxes so that users can select items from another table, as input, instead of everything being free-form. I can show a dropdown list with hard-coded items, but I can't figure out how to show items from a table instead (or how to process the selected items).

It should really be a fairly simple task, but I can't seem to find anything on the web that matches my simple question - they are all complex scenarios.

Perhaps if I list the code, someone can show me the extra code required for the combo/dropdown list?

My request comments are on lines 12 and 17.

The main ASP page :

<form action="updateconcern.asp" method="post">
  <legend>Pastoral Concern Record</legend>
   <input type="hidden" name="SchoolID" value="<%=intID%>" />
      <td><textarea name="Concern" rows="10" cols="60" wrap="soft"> </textarea></td>

   <tr>  <!---***This is where I want the dropdown containing values 1,2,3,4,5, just the numbers, not pulled from a table***--->
     <td><input name="Severity" size="12" type="text" /></td>

   <tr>  <!---***This

Open in new window

I am on a project which requires me to make modes to apps
which have asp directive:

 <!--#include virtual="/global/inc/footer.aspx"-->

on multiple pages.

We can only use IIS express in development therefore I get error:

Parser Error
  Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

 Parser Error Message: Could not find a part of the path 'C:\Fraud-Tip-Form\Fraud-Tip-Form\global\inc\footer.aspx'.

Source Error:

Line 332:                    <tr>
Line 333:                        <td>
Line 334:                            <!--#include virtual="/global/inc/footer.aspx"-->
Line 335:                        </td>
Line 336:                    </tr>

 Source File:  /index.aspx    Line:  334
Is there a way around using IIS Express.  We are prohibited from using IIS for testing.
Currently, I am just deleting the include directive for testing.
I used do a lot of Classic ASP!

Now on a Wordpress site, I want to have a QUIZ, with some questions and dropdowns and textboxes, with Submit buttons.
I need to collect the answers in a database table, grab username, store in session variable (as need several pages).

Can someone point me in the right direction please?

I have a lot of experience programming in MS Access VBA and some experience with classic ASP.

I created a website using classic ASP many years ago which uses MS SQL Server as the backend database engine.

Website visitors can enter a part number in a search box I generated and view a list of parts that are returned as search results.

I would like to add a shopping cart and payment gateway to my existing website but do not know where to start.
My existing code determines the item, quantity, and part number that the buyer wants to purchase.

It seems that I should be able to obtain a collection of pages that I can add to my site that will create the shopping cart and provide a payment gateway.
I should have no trouble integrating this "shopping cart code" with my existing code if it allows me to GET or POST to pass data.

Can anyone suggest a product I can use or someone I can hire to complete the project?

CompTIA Security+
LVL 12
CompTIA Security+

Learn the essential functions of CompTIA Security+, which establishes the core knowledge required of any cybersecurity role and leads professionals into intermediate-level cybersecurity jobs.

Hi!  I inherited a classic ASP site in 2012r2 running IIS 6.2.  I turned on "Detailed Errors" but all i get is:

An error occurred on the server when processing the URL. Please contact the system administrator.
If you are the system administrator please click here to find out more about this error.

The "here" is just a link to MS KB Page "Classic ASP Not Installed by Default on IIS 7.0 and above" which seems inapplicable to IIS 6.2 and most of the ASP runs fine so all the correct features are installed.  The last time I worked with classic ASP (LOOOooong ago) I configured IIS to serve detailed errors and I got a stack dump and what line of what ASP page the error was on.  I think this page error page was created by my predecessor, but I don't know how to get rid of it and get the detailed errors back.

I need the detailed errors to debug some issues on this unfamiliar site.

Is someone expert enough at old stuff to have a clue how I might turn the full error detail display back on?
I'm using json2.asp from:

Here is a sample string:
{"Product Line":"B5","Model":"B521432CSSK","length":"14","Column1":"14'x5" Channel Buggy Hauler","Dealer Cost":"$2,685.00"},
{"Product Line":"B5","Model":"B521632CSSK","length":"16","Column1":"16'x5" Channel Buggy Hauler","Dealer Cost":"$2,684.00"},
{"Product Line":"B5","Model":"B521832CSSK","length":"18","Column1":"18'x5" Channel Buggy Hauler","Dealer Cost":"$2,719.00"}

When I run the following:
dim info : set info = JSON.parse(join(array(ProductFeed)))
for each key in info.keys()
Response.write key
set info = nothing

I get numbers. If I remove the brackets at the beginning/end of the string, I get "Product Line", "Model", etc. - but I only get the first row of the string.

I need to loop through the whole JSON string, get the name and value pair, process, go to the next row....

Any help would be appreciated.
Dear Experts
i have an asp web application form , and i have a combo that contains all cultures that exist ex:ar, en, fr
i need when i change the culture from the combo to translate all labels inside
what is the best way to do that ?
thank you
I have and asp scrpit thta passes data to a php script via  post in a form.

All is ok except that whn the data passes it to large (too many bytes) I doesn't pass all the variables

As long as the amout of data remains relatively small all is ok.

I test passing the data to aan asp script and it passes it all.

Any ideas?

Hi all, I have changed from Access to MSSQL for my database, however some of my Classic ASP code is having issues. little help? I cant find anything through searching

Set Currencies=oConn.Execute("SELECT ticket_curr FROM tickets WHERE ticket_from>getdate() AND ticket_live=TRUE AND ticket_soldout=FALSE GROUP BY ticket_curr ORDER BY ticket_curr")

Open in new window

Hi, Experts, I need to know how it's possible to include in the manifest="offline.manifest" a messages from the server computer via Ajax and that message will store at the same time in the session storage and will be used during offline. I'm trying to develop an offline browser but getting difficult how to achieve that goal.  I used body onload event to trigger the Ajax and obtain the messages from the server thru ASP. <body onload="return GetMsg()"> My goal here is to retain or include the messages in the session storage and be used during offline. Any help please!  

<script>var msg;</script>
function GetMsg()
    var str = "E"
        var xmlhttp = new XMLHttpRequest();
        xmlhttp.onreadystatechange = function() 
            if (this.readyState == 4 && this.status == 200) 
                msg = this.responseText;
        };"POST", "GetHint.asp?q=" + str, true);


Open in new window

The offline.manifest

Open in new window







Active Server Pages (ASP) is Microsoft’s first server-side engine for dynamic web pages. ASP’s support of the Component Object Model (COM) enables it to access and use compiled libraries such as DLLs. It has been superseded by ASP.NET, but will be supported by Internet Information Services (IIS) through at least 2022.