asp-classic

SEO friendly URL in Classic ASP?

I have website developed in classic ASP. The URL is not SEO friendly at present. Please suggest how I can make the SEO friendly URL for my website in ASP. Is there any supporting functions which can help in creating SEO friendly URL in ASP? URL for product Information page like this : http://www.yourdomain.com/store/template/template2...

Error using excel ODBC driver in classic asp

I am getting this error when I try to load an excel document as a datasource for my webpage Microsoft OLE DB Provider for ODBC Drivers error '80004005' [Microsoft][ODBC Excel Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0xd5c Thread 0x7e4 DBC 0x19acf74 Excel'. What is going wrong? ...

Classic ASP: Best way to read & write large (5mb+) files using FileSystemObject

All, I'm working on an application that allows authorized users to upload Excel spreadsheets to our server. Once they're uploaded, there's a classic ASP script that reads the data in the Excel spreadsheet, does a bunch of validation, parsing, and manipulation, then writes the modified data to a tab-delimited text file. Then, it kicks ...

msxml6.dll error '80072ee2' The operation timed out

I have old code that call a .net webservices that throws this error if the .net code is cold (not in memory) msxml6.dll error '80072ee2' The operation timed out A reload always fixes this Can I change the timeout? Can I stop the .net from going cold? Can I trap the error in classic asp and do reload to stop the user see the error...

Password encryption/decryption between classic asp and ASP.NET

I have 2 websites: one written in classic asp and another written in ASP.NET (1.1 framework). Both applications use a login mechanism to validate user credentials based on a shared database table. Up to now passwords are stored in a 1-way MD5 hash, meaning people must be given a new generated password if they lose the old one. I now want...

In Classic ASP, how do I reference a variable based on a string?

I have many constant variables for example: Const Total_US_Price = "100" However, in my code, I am pulling a string "Total_US_Price". I want to replace my string with the value of the Const variable. How do I do that? How do I change "Total_US_Price" to return "100" (both being strings)? ...

404 error in IIS 7.5 when redirecting in a frame.

I have IIS 7.5 on my Windows 7 x64 system. I have installed and properly configured IIS to allow me to run ASP.NET and Classic ASP. For some reason though, when i do a redirect from an ASP.NET page to a classic asp page I get a 404 error. I know the page is there. If I copy and paste the URL of the classic ASP page into the address b...

Looking for a very simple spam-prevention class/function for ASP Classic

I am looking for a very simple solution to prevent (or reduce) form spamming. I've got quite a few ASP classic applications that contain contact us/miscellaneous forms here and there that generate emails. Few of them have been caught by spam bots and are being abused. I need very simple solution(s) to reduce spam if not eliminate it. Aud...

Server.CreateObject("CDONTS.NewMail") is not working

Hello guys. I have server with IIS7. A lot of sites that hosted on it. We tried to implement email sending on one of the classic asp site. I know it is not difficult at all. But it can't create cdonts activeX object. (error '800a01ad'. ActiveX component can't create object) It is working well on the rest sites. I tried to copy two pa...

Hide <TR> tag based on Recordset NULL value

I am using a Microsoft SQL Server 2005 stored procedure to post records in an HTML table. In the HTML table, I have rows for the following fields: entry #, open date, description, and owner. Sometimes, the owner field in the db table will be NULL. When this happens, I have ASP response.write "N/A" in the HTML table row correspondin...

How can I http post data to any page in the web in Classic ASP?

How can I http post data to any page in the web in Classic ASP? ...

How do I schedule regular database clean up tasks in Classic ASP?

Hi, I have a Classic ASP site, that requires some database tables to be emptied out of session data on a schedule. This system doesn't have access to scheduled tasks (it's on a shared web host, and using MySQL server) I was considering using global.asa, to fire off events as such: Application_OnStart - delete all session data from d...

Classic ASP class properties

Is it possible to set a dictionary object as a property of a class in classic ASP? I can't seem to get the syntax right. I have a function that I want to return a dictionary object, and assign the dictionary object that is returned by the function to the class property, but I keep getting a type mismatch error? If I can't use the dictio...

Multipart/form-data and UTF-8 in a ASP Classic application

Hi all, I have a problem that I really don't understand. I'm trying to upload a files in a asp classic app, without the use of an external component. I also want to post some text that will be stored in a DB. The file upload perfectly, I'm using this code: Upload Files Without COM v3 by Lewis E. Moten III The problem is the other form...

Most efficient way to create reports every 15 minute?

I currently have an ASP Classic script that runs every 15 minutes (via scheduled task). The task is responsibly for opening up Internet Explorer and loading the create report ASP page. Once the page is done loading, I have Javascript at the bottom of the page responsible for closing the IE window. We often run into issues where the scri...

form inside form serialize problem

I am trying to submit a form inside another form because I will need first form's outcome in the second form. I tried using form serialize as advised in some other threads. Problem here is, I dont receive an error but it does not function either. <script type="text/javascript"> $(document).ready(function(){ $("[id='vide...

uploading file with jquery (not with flash plugins)

Code successfully upload file when I remove jquery script codes and submit. But with the following code, text in output div disappears and new text from other page does not write there either. <script type="text/javascript"> $(document).ready(function(){ $("[name='video-submit']").click(function() { $.ajax({ type: "POST", e...

Error when instantiating .NET/COM interop class via classic ASP

Hi all, I am having a problem when trying to instantiate a C# .NET class that's been exposed to COM in a classic ASP application. I've used tlbexp to generate a typelib and registered it in Component Services; now when trying to create the object as such: Server.CreateObject("The.Class.Name") I am getting the error: Server object er...

Migrate (monolithic) Classic ASP to ASP.Net

For many years I have had an objective of moving out of ASP/VBScript to a "better" language - my preference would be C# as I have skills in C - but I would consider other languages too (including PHP etc. so not just DotNet) Objective is to have the code base in a language which does more for us. I hate the lack of data typing in VBScri...

Using Classes in a Dictionary in Classic ASP

Hi I usually do C# but have inherited a classic ASP project. I have defined a class: Class clsPayment Public Name End Class Set objPayment = New clsPayment objPayment.Name = "StackOverflow payment" And a dictionary: Set colPayments = CreateObject("Scripting.Dictionary") colPayments.Add 1, objPayment When rea...