asp-classic

Anyone have benchmarks / speed tests comparing Classic ASP vs ASP.NET 2.0 or 3.5?

I'm thinking about using ASP.NET in a new project I'm starting and I'm wondering if it's faster than classic ASP. I've been using classic for years, and never ran into any problems, but I really want to pick the fastest out of the three. Thanks for your help! ...

Background File Copy process in ASP

Hi All, I have an application in classic ASP. On click of a button, it copies a file and its relative folder from one folder to another folder, and displays a link to user for the destination folder. User can click on link and get the file from destination folder. Now, I am facing problem with file and its relative folder size. I have s...

Caching recordsets in ASP Classic?

How can you best cache disconnected ADODB recordsets application wide in a classic asp scenario? It does not seem like it is possible to store disconnected recordsets in application state, or am I missing something? I found an example of how you can persist recordsets to xml and load them again, but I was hoping to stay in memory - but...

CDO.Message - "The transport failed to connect to the server."

I'm working on a Classic ASP & Vbscript site that uses CDO.Message to send email in a function. I'm running into trouble with this function and am recieving the error, CDO.Message.1 error '80040213' The transport failed to connect to the server. I believe it has to do with the SMTP authentication settings and the shared host we are r...

IE6 dropping session information when moving from .aspx to .asp page

So this is the problem: We have an application that has both .asp and .aspx pages. When a user is browsing to the site using IE6, there is a possibility that the page will drop the session and the user gets an or the login page. This doesn't happen all of the time; only sometimes. But I have only been able to replicate on IE6. Sometim...

Exception line-number in Jscript-ASP

Hello all, I'm developing a website with server-side JScript engine over ASP server. I have several try-catch clauses in my code looking roughly like this: try { // do something } catch (err) { // pass it to the frontend code die("Exception caught: " + err.description); } I would very much like to display the line number in ...

How to create thumbnail images in classic asp?

I found the best solution in codeproject But to enable that, I need to register the com object first. So is there any other way to create thumbnails with out using any third party? In about example we have to use CxImageATL.dll. If we can't do without third party then, Is there any other way to use this dll with out registering the dl...

pass a value from jsp to classic asp page

Hi, I have 2 pages - 1st jsp page and 2nd asp page.Onclick of a link in jsp page, it opens the asp page. now I need to pass the selected dropdown value from jsp to asp page. Thanks in advance. ...

Debugging ASP Stored Procedure Calls

I'm using the following code block to call a SQL Server 2005 stored procedure. The problem is the call will intermittently fail. How can I obtain more verbose information about the case of the failure. I've tested the SP with the failing input and found no issues. This would seems to indicate an error on the ASP side. Set rsOrderItems =...

ASP "Operation not Allowed" error occured while eecute Request.Form method

I have run the following script for increase the file size for upload E:\inetpub\adminscripts cscript adsutil.vbs set w3svc/ASPMaxRequestEntityAllowed size After running the command.I am getting this error... Request object error 'ASP 0104 : 80004005' Operation not Allowed /ewqms370/common/indexintermediate.asp, line ...

"subscript out range" error (vbscript on pageload)

Hi, my name is Edd and I need your help. This error occurs on page load in my classic ASP application: Microsoft VBScript runtime error '800a0009' Subscript out of range: 'cont' /admin/cadastros_apz_material.asp, line 173 The associated code is: do while not rs.eof for i = 1 to tpp if i = 1 then matriz(cont) = Rs("id_mater...

Sending an embedded image in an email from Classic ASP

I have done this before in ASP.Net; however, not in Classic ASP. Is it possible (and if so how) to create an HTML email in Classic ASP that includes embedded images? ...

how to debug asp server-side script using MS script debugger

how to debug asp server-side script using MS script debugger. ...

Can you declare a variable in ASP classic like this?

I am trying to see if this can be done in classic ASP: Dim myVar myVar = <<< END <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>test</title> </head> <BODY> END I can do this in PHP, but I am not positivte if it can be done in ASP. Problem is I need to handle the HTML output via a variable, and I...

Classic ASP on IIS7: ADODB.Stream error File could not be opened - accessing outside the webroot

I've just reinstalled a server, it is a new machine, same OS verion (Win2008) and same IIS version (7.0). The app was working perfectly (and then the machine blew up). I'm getting this error when I try to access a file outside the webroot: ADODB.Stream error '800a0bba' File could not be opened I can access it fine using FileSystemObje...

How do I pass a parameter from ASP to XSL?

I'm writing a simple asp page to show a team rota based on some XML. Here's the XML: <rota> <shift date="20091201" primary="Chan" secondary="John" notes="notes"></shift> <shift date="20091202" primary="Mike" secondary="Alex" notes="notes"></shift> <shift date="20091203" primary="Ross" secondary="Mike" notes="notes"></shift> <shift date=...

Datagrids and Classic ASP

Hi there, to maintain compatibility with a classic ASP system, I essentially need to build the equivalent of an ASP.NET datagrid (complete with read, insert and update capability) in Classic ASP, are there any tools out there that make this any easier than just simply handcoding tables? I'm fairly rusty at Classic ASP as well so an easy...

How do I debug a 500 Internal Server Error on IIS 6.0 managed by Plesk (running ASP classic)?

I have read pretty much EVERY blog post, article and help document published regarding this problem and they have not helped. The most common suggestions are: Internet Explorer -> Tools Menu -> Internet Options -> Advanced -> Show Friendly Error Messages (make sure this is NOT ticked) IIS -> Home Directory tab -> Configuration... -> De...

Downloading problem in IE

I am using classic asp with vb script. The code for downloading the excel file is: Response.ContentType = "application/vnd.ms-excel" Response.AddHeader "Content-Disposition", "attachment;filename=ExportedData.xls" Response.Write "<table><tr><td>1</td></tr></table>" Then it works fine with the firefox, or any other down loader like orb...

VBScript function to create a two-dimensional array, like GetRows does

This is asp classic using VBScript, and no, it ain't moving to .net anything, so don't even ask. OK, so the classic way to get data out of a database is to use GetRows: Dim MyRecords Dim rs, conn [...database opening stuff...] If Not rs.EOF Then MyRecords = rs.GetRows End If [...close database & set to Nothing...] Note how MyReco...