asp-classic

VBScript's CopyFile not working

I think it may have something to do with the external file but I am getting the error Path not found and don't know why. Code below. <% Dim fs set fs = Server.CreateObject("Scripting.FileSystemObject") fs.CopyFile "http://domain.com/file.xml","softvoyage.xml" set fs = Nothing %>DONE. ...

Does anyone know of a syntax checker for classic ASP ?

As part of my my web development system I have written a text editor witch (among other formats like CSS and HTML) has got ASP syntax highlighting. Does anyone know of an ASP syntax checker program of (preferably) DLL that I could call from within this editor, so that I could present my users with a list of errors (like I already do wit...

Use .NET in VB6 or classical ASP

Duplicate of Calling .NET methods from VB6 via COM visible DLL Which ways exist to use/call .NET classes/functions/libraries (.net 3.x) in VB6 or classical ASP ? Has anybody experiences with that ? How much effort is necessary to wrap .NET to COM ? Are there tools which help ? ...

Grouping date periods (by number of days) but exclude the weekends?

I have a table with start and end dates in. My goal is to have a table that has grouped these dates into how many days the period spans. I thought I had the solution with a simple SQL statement (MS SQL Server 2005) but I want to exclude weekends. SELECT DATEDIFF(D, StartDate, EndDate)+1 AS Days, COUNT(ID) as Count FROM myDateTable GRO...

Grouping an array in classic asp?

I have an array in ASP that looks like this: 3,5,7,7,3,2,3 What I want to do is group them together with a count so I would have: Number Count 2 1 3 3 5 1 7 2 Is this possible? If so how? ...

Large VBScript array yields 'Out of Memory' error

In Classic ASP (VBScript), if I try to create a large 2-dimensinal array, I get an "Out of Memory" error. For example, this DIM xxx : xxx = 10000 DIM yyy : yyy = 10000 REDIM aaa(xxx, yyy) Response.End yeilds this Microsoft VBScript runtime error '800a0007' Out of memory Is their another data structure I can use that will work, o...

Getting "This type of page is not served", How to run classic asp in VisualStudio on local machine?

I have an ASP.NET project in Visual Studio and have added a classic asp forum application. When I run this on my localhost machine (XP Pro with IIS), I get "This type of page is not served because it has been explicitly forbiidden". This project has both ASP.NET and the classic ASP both running in the same project. How can I configure...

How can I escape a string in classic ASP for use in XPath query?

I have string I'd like to escape for use in an XPath query. In C# I am able to do this using a call to SecurityElement.Escape. Is there an equivalent call in classic ASP? ...

How can I get the current domain in Classic ASP?

I want to get the current domain so if the page is http://www.domain.com/page.asp I need www.domain.com ...

In ASP - Why is it that I can call python functions from vbscript but not vice-versa?

I'm planning on writting some new code for a legacy ASP application in Python, and I ran into some odd behavior. If I write a function in python I can easily call it from a VBScript block. However, if I try to call a function defined in VBScript from python, I get an error: Python ActiveX Scripting Engine error '80020009' Traceback (...

Need help with not displaying folders that do not contain anything

I have the following code that displays all folders and files within each folder. The script is within the /intranets/fs/course_outlines/ folder -> default.asp All the folders that this script is looking at are within the /intranets/fs/course_outlines/documents folder Within the script below, it prints the "documents" folder and I am ...

Using ADFS 2.0 with non-.NET services

I am looking at ways to tie together a number of Windows-based web services together under single-sign-on. Microsoft's Windows Identity Framework and ADFS 2.0 are the perfect tools for the job, except that not all of our web services are written in .NET. One is classic ASP and another PHP. Are there existing libraries that will work for ...

Classic ASP parsing bug when the page contains IE conditional comments

I think i have identified a bug in the way ASP handles IE conditional comments (or html comments in general).. In theory it should not handle them at all since they are meant for the client-side.. In practice .. <!--[if IE 6]> <!--include virtual="emptyfile.asp"--> <![endif]--> will return <![endif]> Yes, you read that correctly....

Random exclamation mark in email body using CDO

We are getting random exclamation (!) mark in email body using CDO object in Classic ASP. We are not getting this exclamation mark with outlook. Problem only occur with Lotus Notes client. We use IIS SMTP server to send email. Edit Set myMail= Server.CreateObject("CDO.Message") myMail.Subject="Business and Company News on your Mobile...

Leading the jump from Classic ASP to ASP.NET, any advice?

Hey everyone, So I just started at a new company that has 99% of their code written in classic ASP (most of it poorly written) and part of the reason they hired me was because I had worked with both ASP and ASP.NET in the past. The ASP.NET experience was VB.NET but I've worked with C# in college but I prefer it just because I've worked...

Can ASP Classic use registration free components?

Like the topic says, can ASP Classic use registration free components? This is on Windows Server 2003. If so, how do I go about doing that? If not, could anyone please provide some alternatives? ...

Classic ASP Impersonation problem on IIS7 Windows 2008 server

Hi, I am trying to write to a file on a server (web05) from a classic asp site running on Windows 2008 serer on IIS7 (webadmin). This fails and web05 logs an anonymous logon attempt during the course of the save operation. Webadmin's site is running on an app pool in classic mode with a domain user as the process account. The process ...

How do you coerce float values in MySQL for classic ASP scripts?

I have been charged with maintaining a legacy classic ASP application. The application uses an ODBC system DSN to connect to a MySQL database. We had to recently update the servers to satisfy some licencing requirements. We were on Windows, with MySQL 4.x and the 3.51 ODBC driver. We moved to a Linux machine running MySQL 5.1.43 and ...

Can Classic ASP pages run in Azure?

I'm looking into Azure and unsure if Classic ASP (i.e. ASP 3.0 with .ASP extensions) can run in Azure? I found this blog post from January 2009 indicating Classic ASP can NOT be run in Azure. But on this interoperability page it looks like now, other platforms like PHP can be run on Azure. I still see no mention of Classic ASP though....

Which method will perform better? (Or is there not enough of a difference to matter?)

Which (if any) of the following will give the smallest performance hit? Or is the difference so small that I should use the most readable? In the same page I've noted 3 styles used by previous maintainers: Method 1: If (strRqMethod = "Forum" or strRqMethod = "URL" or strRqMethod = "EditURL" or strRqMethod = "EditForum") Then ... End...