asp-classic

ASP Classic - XML Dom

I've got the unpleasurable task of working on a Classic ASP site (VBSCRIPT) and need to parse out the following information in a loop. <xml> <product ref="xxx"> <xxx/> <xxx/> <xxx/> <images> <image ref="JCCCCCC" /> <image ref="JCCCCCD" /> </images> </product> <product ref="xxx"> <xxx/> <xxx/...

JQuery Slider Examples With Classic ASP?

I'm about to try and implement the JQuery slider into an old Classic ASP store, where the slider would control the price range. So have a price between say $40 and $80 and you could use the slider to go between $50 and $60... Anyone know of any examples of using the slider with ASP in this way? I'm guessing I store the values in hidd...

How to debug ASP permission problems with WScript.Shell object?

I have to run command line operation from some legacy ASP application. Here is my code: <% cmd = "%comspec% /c echo Hello" set wsh = CreateObject("WScript.Shell") ireturn = wsh.Run(cmd, 0, true) set wsh = nothing %> And here is result I am receiving: Microsoft VBScript runtime error '800a0046' Permissi...

Can't write file in classic asp

Ok, it's been a while since I've worked with classic asp so I'm a bit rusty. Here's my question. I'm trying to write a file to the file system using FSO. The code below is very simple. However, the file is not appearing and no errors are appearing. I know it's running the code because I can add response.writes before and after this snip...

What is the equivalent to ASP.NET's HttpContext.Current.Items in Classic ASP?

The title says it all really, but to clarify what HttpContext.Current.Items is, it's a store that has a life span of the HTTP request. I'd like to know the Classic ASP equivalent of this. ...

XML and ASP: Retrieve and parse a remote file

I'm building a site on a Windows Server with ASP enabled. I need to retrieve an XML document from another server and return a value in that document. The xml file is small - only one node with a text value. I just need to return that text value. I've never worked with ASP before, and Googling around has led me to some code examples, but ...

How can I make a variable static (or "global") in Classic ASP?

I want to make my variable static or "global" - so the same effect as static in .NET; every session that accesses it gets the same result, and if one session modifies it it affects everyone else too. How can I achieve this in Classic ASP? ...

Can I do delayed execution in ASP? Or: please offer any help on improving performance of an old ASP site

I'm trying to improve the performance of a website written in classic ASP. It supports multiple languages the problem lies in how this was implemented. It has the following method: GetTranslation(id,language) Which is called all over the shop like this: <%= GetTranslation([someid],[thelanguage]) %> That method just looks up the ID...

Server.MapPath in a COM Component

I'm rewriting an old VBSCript WSC component into a nicer C# COM Component. For a horrid reason the old component in one place is passed the Server Context, IServer by using Set objCurr = CreateObject("MTxAS.AppServer.1") Set objCurrObjCont = objCurr.GetObjectContext() Set component.servercontext = objCurrObjCont("Server") this is th...

retrieve the value of a timestamp field with adodb - how to read a byte array from classic asp

I'm working with asp and adodb, querying a database (ms sql 2005) I have a field named stamp, of type timestamp in asp I get the following field.ActualSize: 8 field.DefinedSize: field.Name: Stamp field.Type: adBinary (128) field.Attributes: 528 (adFldFixed (16) + adFldRowVersion (512) ) (so adFldLong is NOT turned on, so I can't u...

Classic ASP - How to convert string to UTF8 to USC2

I have a problem where I am storing a UTF8 string in SQL Server as USC2, when I pull it out to display on a page with content-type set to UTF-8 it works fine. But I have a third party javascript component which when I pass it the string for the database it renders it as USC2. or not UTF8. Is there a way in ASP to convert this string to ...

Replace words from querystring with Regular Expressions

Hello the string is = "Reg.asp?q=RG_Price=5000*8000,Activated=1" and i want to replace "RG_Price=5000*8000" with that "Price BETWEEN 5000 AND 8000". Is that possible with Regular Expressions in ASP ? ...

Is there any way to check to see if a VBScript function is defined?

This is probably just wishful thinking... Is there any way to check to see if an ASP/VBScript function is defined before calling it? ...

Sharing login-system between classic ASP and ASP.Net

A client uses classic ASP to log in to their web based backoffice. I have written a new ASP.Net app to be included in the backoffice, and I need to utilize the already existing login-system, so that when they are logged in there, they don't need to log in again in the new ASP.Net app. Logins and passwords are stored as clear text in a ...

ASP Pages not rendering properly

Good Morning, I was having serious problems regarding this website. What happens is everyytime I try to open a .shtml page in the site it always has an error "The Page Cannot Be Found" but this is highly unlikely since I already all have the resources in my local pc and already did a virtual directory for the entire site. Can you pleas...

Working with big files in classic ASP

Hello, I was wondering what's the best practise for serving a generated big file in classic asp. We have an application with "export to excel" function that produces 10MB files. The excels are created by just calling a .asp page that has the Response.ContentType set to excel and has an HTML table for the data. This gives as problem ...

Asp Classic Calling webservice with SOAP Request

I'm trying to get a response from a ASP.NET webservice without using the get parameters. I have the following code. strBarcode = "ABC123 strURL ="http://serverName/BarcodeGenerator.asmx" Set xmlReq = Server.CreateObject("Msxml2.DOMDocument.3.0") Set xmlResp = Server.CreateObject("Msxml2.DOMDocument.3.0") Set httpReq = Server.CreateObje...

System.Net.HttpWebRequest in classic asp?

I've got a classic asp app that needs to post XML to a payment engine, and the reference code uses a System.Net.HttpWebRequest object (asp.net). Is there an equivalent in Classic ASP that I could use to post the XML? ...

Can jQuery be used in a classic ASP application?

We have a large classic ASP application that we are rewriting into ASP.NET. We won't be finished with the rewrite, testing, etc until the end of next year. We're getting a lot of pressure to spruce up the interface of the classic ASP application in the meantime. Is it possible to use jQuery with classic ASP? ...

What is VBScript error code 0x800A01FB

I have a solution based on ASP, VB6, COM and SQL Server. The web server is IIS 6. At irregular intervals, I get the following error message on the ASP page: Microsoft VBScript runtime (0x800A01FB) An exception occurred: 'objPSM.GetValue' (where "objPSM" is my own session-handling COM class). If I reload the page, it works. I tried ...