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

We just upgraded our Windows 2008 r2 server to Windows 2012 r2.  This server is just used as a web server.  After upgrading, our websites were not working.  After going into IIS all the websites were labeled as folders and not applications.  I don't know why the upgrade did not keep them as web applications.  So in IIS I made all the websites applications.  For security I have IUSR and IIS_IUSRS and gave them all permissions, but full ,modify and special.  Some applications work and some don't.  All our applications are classic ASP.  Some web applications use a corporate logon page.  So in ASP we call the corporate logon page with the return url back to my website.  The corporate logon page is retrieved, and I enter my userid and password, but on the return I get an error (500 internal error).  I think this has something to do with App Pooling but not sure.  I say that because one website that has no issue doesn't use the corporate logon.  It was initially getting an error on a redirect that had a parameter.  Once I changed the pooling from defaultAppPool to Classic.Net AppPooling the website worked.  This pooling did not work for those applications that used the corporate logon.  Has anybody come across this issue when upgrading to Windows 2012?
Starting with Angular 5
LVL 13
Starting with Angular 5

Learn the essential features and functions of the popular JavaScript framework for building mobile, desktop and web applications.

Hi guys
I use classic ASP
Is there a way to find out  if user's  JavaScript is enabled or disabled and store the answer in a Boolean variable (True or false)
Hi I am new to C# core and I come from a VB forms background.  I have been working on a web application project using the latest asp core.  

All i am trying to do at the moment is have a page where you enter a serial number then on leaving that serial number it comes back and displays some additional information from a stored procedure in a grid on the page or it displays an error from the stored procedure.  Then there is another button that will fire another stored procedure that will insert data into a database or return an error on error checks.   If not an error the whole page resets and ready for the next one.

The problem I have been having is that i cannot work out how to fire the stored procedure and return the data after leaving the text box and display an error if needed.  To simply it I have added a button so I enter the serial number then press the button rather than get the on leave event from the text box.

My problem is the data is binded before the page loads with some default data.  I do not know how to do it part of the way through or how to pass a parameter (serial number to it).  I have the ajax to call a function that displays the data from before, but i do not know how to change the lookup to be based on that serial number.  Or in the case of being an error display an error.

My code is below:
Model class:
public class OperationsData

       public string Job { get; set; }
       public string Item { get; set; }

Open in new window

Need to get value of webpage URL (with query string parameters, without, and only string with parameters)
Thank you in advance.
Hi all, I am not sure if this is possible, however... I thought I would ask

I was curious to see if it is possible to show the same record twice (on 2 variables in the same statement) ?

I have an item which has a departure date/time of: 8/10/19 02:05am, and the arrival date/time of: 8/10/19 07:55am

Is it possible show the same record but twice in order of date, time? then do it for multiple items in the itinerary

Depart 8/10/19 02:05am - Flight
Arrive 8/10/19 07:55am - Flight
Depart 8/10/19 08:30am - Transfer
Arrive 8/10/19 09:30am - Transfer
Check-in 08/10/19 02:00pm - Accommodation
Meeting 08/10/19 05:00pm
Check-out 09/10/19 10:00am - Accommodation

Please let me know if you need anymore info, would like to know if its possible or if there is a funky way of doing 2 statements to make it possible

Cheers in advance!
From ASP, I need to create an appointment that is automatically added to a shared Office 365 calendar.

I have been able to generate the .ics file and send to individuals, but have not been able to get it to the shared calendar.

Please I need web page for End user self update of own information.
In fact when the user run the web page (in LAN) Index.html and use PHP or asp or other language)  to Use the Logon authentication Credentials for Active Directory and after in the same web page the user can edit her telephone number or other attribut.
Any idea about this please ?
I have a Twilio account and have created sending functions for SMS and FAX using classic asp.  

I am trying to construct a way to get an incoming fax and log its file location using twiml and classic asp.

Twilio server comes to my server to get the OK to answer call, then receives the fax and returns the mediaurl of the fax file,  I need to be able to do these 2 steps.  I have tried with PHP but cannot get it to work.  Since the rest of the site is written in Classic asp and I can already send notifications from my software and I can also send FAX from my software just the receiving is the problem.

Any suggestions from the experts??



Here is a link to the site with basic code

Hi Experts,
There is a built in function in SQL Server which returns the logged in user's computer name:
When I run it in Management Studio it returns the computer name correctly.

In the code below I hard coded the computer name and it executes the stored procedure.
Instead of hard coding it I would like to take advantage of the HOST_NAME function. How can I modify the code below to capture the computer name?
Thank you for your help.
Set AdoCon = Server.CreateObject("ADODB.Connection")
AdoCon.Open "Provider=sqloledb;SERVER=AAAAAAA;DATABASE=myDatabase;UID=myUID;PWD=myPWD;"
set rs = Server.CreateObject("ADODB.recordset")
Dim HostName 
HostName = "HardCodedComputerName"
rs.Open "exec sp_GetComputerName'" & HostName & "'", AdoCon

do until rs.EOF
ID = rs("ID")
Location = rs("Location")
Workstation = rs("Workstation")
ApplicationName = rs("ApplicationName")

Set rs = Nothing

Open in new window


I am getting above ASP 500 internal server error when i try to hit below code. But i am unalbe to find cdate in code.

count.asp, chkShowCriteria=on&cboProduct=ALL%7CALL&cboWorkOp=ALL%7CALL&RefreshRate=10&txtPast=5&txtFuture=5&chkShowDay=on&chkShowProcess=on&chkShowConfirm=on&chkShowCollate=on&chkShowAudit=on&chkShowDelay=on&chkShowPend=on&txtIsSubmitted=true|19|800a005e|Invalid_use_of_Null:_'cdate',

Date are used like below
<input type="text" id="txtPast" name="txtPast" size=1 maxlength="2" value="<%=server.htmlencode(txtPast)%>">&nbsp;Number of PAST days to display.<br>
                                    <input type="text" id="txtFuture" name="txtFuture" size=1 maxlength="2" value="<%=server.htmlencode(txtFuture)%>">&nbsp;Number of FUTURE days to display.<br>
OWASP: Forgery and Phishing
LVL 13
OWASP: Forgery and Phishing

Learn the techniques to avoid forgery and phishing attacks and the types of attacks an application or network may face.

I am moving my classic asp application from SQL Server 2000 to Sql Server 2005 (8 to 9). Please don't tell me to rewrite to .Net because this client is not worth it. However, I use a standard connection (application("DS") = "DRIVER={SQL Server};SERVER=IP Address;UID=UserName;PWD=Password;DATABASE=the name"

Anyway this will not work in SQL Server 2005 even though the connection string looks just fine.  Unfortunately this site runs on a shared server so I have little control.  Is there something that should be done is SQL Server or even IIS that will make this work that I can tell my hosting provider?

Thank you
Hi all, I was just wondering if you can ORDER BY a multiplication result..

In my database I have 2 figures...
Price = 1800,2000,2100
Conversion = 1.72,1.54,1.64
Output to website = 3096, 3080, 3444

If I order by price;

if I order by conversion;

My desired outcome is to order by the outcome;

Is there a way to do this within a statement?

Set Outcome=oConn.Execute("SELECT * FROM product WHERE prod_live=TRUE ORDER BY output") ???

The reason is so we when we buy from multiple suppliers overseas (from different currencies) we can order them in the customers desired Currency lowest to highest or vv.
Hello everyone.  I currently use Office Web Components to render Excel spreadsheets on my web sites from SQL Server recordsets.  OWC is no longer being supported and my client therefore does not want me using it any longer.  I'm looking for alternative methods of rendering an Excel spreadsheet from a SQL Server recordset on my web sites.  I have over a hundred reports that currently use OWC for this purpose.  Does anyone know of or currently use an alternative method?  Or have any ideas as to what else I can do?  The web pages are written is ASP.  Thanks in advance!
Hi All, I am redesigning my website (in ASP Classic) and I would like to integrate cookies into it so I can see where the my potential clients are coming from and what they are viewing (which products)

I have done a bit of reading and I am confused on how to create, request cookies and if they can be used for what I want or do I also need to use sesssion.sessionID and save it all to a database.

I may have to follow up with some other questions as this is quite vague however I am only just learning and do not know the right questions to ask.

Unfortunately I am lose where to start so any help is appreciated
Just installed iis web server 7.0. will run asp classic with access data base. set up virtual directory and application pool but get 404 directory not found
my boss has asked that i modify our CMMS to show down time of machinery. I need to add a time column to our MSSQL data base, how do you go about adding just a time column and insuring the user can only enter time in the correct format in ASP Classic,

what i need to show...

how long a job took, this could be anything from 10 min to 10 days, but i need this to show in hours, to avoid user confusion i was thinking building the input from drop down boxes of days, hours, minuets...  

Any help will be greatly appreciated..
Hello, All.

OK, In ASP Classic we use this.

' Insert into database
Response.CodePage = 28591
Response.CharSet = "ISO-8859.1"

Open in new window

And then
' Read back to the page from the database
Response.CodePage = 65001    
Response.CharSet = "utf-8"

Open in new window

Now, I am coding and am wondering, how to do this in
And where to place it at in the code that exist?

In the insert page. I have everything sitting inside of the
   Partial Class _Default

Need a detailed analysis of this thread. Please find the attached dump report.

Thread 17 - System ID 1040

Entry point   msvcrt!_endthreadex+6f
Create time   5/16/2019 5:10:12 PM
Time spent in user mode   0 Days 00:00:00.437
Time spent in kernel mode   0 Days 00:00:00.031

This thread is processing a client request and is/are not fully resolved. Further analysis of these threads is recommended in order to determine what may be blocking the request(s).

Call Stack

Open in new window

I have some applications that are hosted  on IIS.
One of the applications is using .asp pages and hosted under .NET 2.0 integrated mode application pool. The application is using Windows authentication NTLM.

Recently, we’ve been getting intermittent errors saying


Open in new window

Errors and requests are taking longer, and any requests following this error are getting queued with a 401.2 error.

I traced the failed requests and it is failing at the auth module itself in sending response. I looked in the request queue and see all the requests are in the execution handler state under ISAPI module.

Any application hosted under that app pool, the .asp pages are not working until the app pool get recycled. All other content is working fine.

So my question is, how can I resolve the Server Error code so I don’t have to recycle the app pool to get it working again. Also, when the request is failing at authentication stage itself, why are the requests showing that the are in execute handler stage?

Here are the logs:

REQUEST	f90000008000746a	(url:GET	/thinclient/posting/f2_f2_fastposting.asp?docid=20DE12ACF2944B72B48E8F02F8DBC218&viewactionid=&actionid=080450600906409008045060,	time:24515516	msec,	client:,	stage:ExecuteRequestHandler,	module:IsapiModule)
REQUEST	f600000080001a2b	(url:GET	/thinclient/f1_header.asp?docid=20DE12ACF2944B72B48E8F02F8DBC218&actionid=080450600506409008045050,	time:24515516	msec,	

Open in new window

Introduction to Web Design
LVL 13
Introduction to Web Design

Develop a strong foundation and understanding of web design by learning HTML, CSS, and additional tools to help you develop your own website.

I know what the problem is why its happening and whats going wrong, i have run out of ideas to correct it..

Setting The Scene...

i have a page where there are 3 dates, Creation Date, Expected Completion Date, and Actual Completion Date..

Not getting any problems with the first 2 as they are populated at the same time, and from then on their stat is a known quantity.

the third date is causing me no end of problems, the page can be updated numerous times but when the Actual Completion Date is filled in using a date picker. i need different correction code to enter it into the database. this is fine, but if the page gets updated again, it needs the same date function as the first 2 dates.

i need a way of telling what format a date is in and correct it accordingly, is this possible and how would i go about it..

Thank you in advance..
I am getting a VBScript runtime type missmatch when adding date to string to update record in MS SQL 98 database using ASP classic.. old tech i know but need use of this code, it worked when i last accessed it 4 years ago,
Can you make a Asynchronous call from a asp page without AJAX?
Hello, All.

OK, what used to work, no longer work.
A multiple row insert, will now only, insert all into a single field.

environment: Windows 10 Pro / IIS
inserting into a Microsoft Office Access Database ACCDB
(This is a site for the intranet, and not for the internet. Which is the reason for using the access database)

Code, that used to work.

The form has all TEXTAREA's that are feeding into the insert form.

arrMN = Split(Request.Form("MediaName"), vbCrLf)  
arrMF = Split(Request.Form("MediaFile"), vbCrLf)  
arrMB = Split(Request.Form("MediaBand"), vbCrLf)  
for i=0 to uBound(arrMN)
  Set objDoubleInsert=CreateObject("ADODB.Command")  
  objDoubleInsert.CommandText = "INSERT INTO EVMediaServer (MediaName, MediaFile, MediaBand) VALUES (?,?,?)"  
  objDoubleInsert.Parameters.Append objDoubleInsert.CreateParameter("@MediaName", 200, 1, 255, arrMN(i)) 
  objDoubleInsert.Parameters.Append objDoubleInsert.CreateParameter("@MediaFile", 200, 1, 255, arrMF(i))  
  objDoubleInsert.Parameters.Append objDoubleInsert.CreateParameter("@MediaBand", 200, 1, 255, arrMB(i))  

Open in new window

before, this code used to create as many rows as I had in the fields.
But now, all of it is inserted into ONE ROW, and all the lines are in one column.

What is going on?
Thanks for any and all assistance on this one.

I am trying to view Crystal Reports on a new web server. We are using classic ASP, and I get the following error message when trying to view report
Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/CleaningSvcsSG/reports/AlwaysRequiredSteps.asp, line 21


Line 21 is
Set session("oApp") = Server.CreateObject("CrystalRuntime.Application")

Please help.
Hi all, I am having some issues with radio buttons and the auto summing/submission of these...

Here is the link of what I have
My site for testing

Now the summing of the items is not an issue, however when I submit, it grabs the wrong info (need it to grab 'iID' not 'value')
<input type=radio name="&ItemOptionGross("pitem_alt")&" value="&ProdItemOptionPrice&" iID="&ItemOptionGross("pitem_ID")&">

Open in new window

Any help is appreciated






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.