asp-classic

Encoding problem classic ASP

Hi! have a problem with classic asp. The encoding gets wrong when I send data with XMLHttp.send. The response is an pdf file, but the “ÆØÅ” gets wrong, the “Ø” is read as “øy” for example. It’s like it’s a converting mistake from UTF-8 to ISO-8859-1, but it should be ISO-8859-1 now. I have <%@CODEPAGE="28591"%> at the top at the page...

Classic ASP "Down for Maintenance" page

I'm making some changes to a legacy classic ASP application. I've made the changes locally, and now I want to copy the changed files to the server. At the same time, I need to download the Access database, add some fields to some tables, and upload it again. For this reason, I need to be able to stop visitors from modifying the database ...

Debug .asp pages with visual studio 2005

I'm migrating a website made in classic asp to asp.net, but the asp.net dev server doesn't handle .asp pages. Is it possible to make it run .asp pages? Maybe a custom httphandler for .asp? thanks! ...

How do you call a method from a variable in ASP Classic?

For example, how can I run me.test below? myvar = 'test' me.myvar ASP looks for the method "myvar" and doesn't find it. In PHP I could simply say $me->$myvar but ASP's syntax doesn't distinguish between variables and methods. Suggestions? Closely related to this, is there a method_exists function in ASP Classic? Thanks in advance! ...

Encrypting connection string in classic asp

Is it possible to store encrypted connection string so it can be used from server-side vbscript? Was there an equivalent of web.config in 'the good old days'? ...

Should new programmers learn ASP first or ASP.Net?

My colleague here argues that new programmers must learn ASP first, before they learn ASP.Net. I seem to agree with him as most new programmers who start with ASP.Net do not understand web get, post and state management :( Which is best to learn web programming Classic ASP or ASP.Net? ...

Is it possible to use GZIP compression on classic ASP pages?

We've got a classic ASP application that is putting out some very large reports, where the resulting HTML is several MBs. We've made a lot of progress in trimming this down by reducing extraneous HTML, but I'd like to know if there's any way to enable GZIP compression on these dynamic .asp pages. I'm sure compressing them would be an eno...

Controlling Processes/Apps via Classic ASP script

I want to provide users of a VB ASP Classic website (a well-defined group) with a button which will stop and restart an application running in a visible window on a particular user's desktop on the webserver. The users do not have direct access to the machine (either physically or via vnc, rdp, etc), and this application needs to be ru...

Parameterized Insert statement with transaction throwing an error

I had a parametrized insert statement that was working well and I needed to add a select statement and wrap it all in a transaction in order to get data for one of the fields for the insert. I'm not sure if I've hit a limitation with ASP/ADO or if I've just got something syntactically wrong. Here's my code: set oSQLCommand = Server.Cr...

Looking for real-time web server analytics package

I am the programmer for the Education department at a county hospital. I would like to be able to see some real-time stats on an IIS6 web server that is only accessible in-house. I'm looking for something similar to what 1and1.com provides for their customers (if you're familiar with what they offer). I have a Classic ASP/VBScript based...

Converting Connection string to SQLOLEDB

Connection Code: set conx = Server.CreateObject("ADODB.connection") conx.Open Application("connectionString") set cmdx = server.CreateObject("ADODB.command") cmdx.ActiveConnection = conx cmdx.CommandText = "dbo.sproc" cmdx.CommandType = &H0004 set rsx = Server.CreateObject("ADODB.Recordset") rsx.open cmdx resarray = rsx.getrows Thi...

Download a file using Javascript

There's this Excel file I want users to be able to download from my server. There must be an easy way to initiate the download of the file after a click on the "Download" button... but I have no clue how to make that happen. I have this so far: (VBscript and ASP) <head> <script type="text/javascript" src="overzicht.js"></script> </hea...

IIS7 error when calling non-activeX dll from COM+ activeX dll called by classic asp

Hi, I hope someone can help me out with this: I have a classic ASP application that works fine on older versions of IIS but not on IIS7. The asp code calls COM+ activeX dll's (written in VB6) and I have managed to get everything running fine except for one program where the ActiveX dll calls another 3rd party non-activeX dll. At that...

Classic ASP gremlims, getting a  inserted into text whenever an HTML special character is used

I'm working on an older classic ASP site, and there's a form that allows the user to enter some text (into a multiline textbox), and if they add an html character like (register trademark) it inserts it correctly. But when they go to edit the data, using the same form, the update will add a random 'Â' (circumflex accent) in front of the...

Classic ASP Error Catching - Can it be done directly using an ASP.Net page?

Is it possible to catch ASP errors in ASP.Net (setup custom error pages in IIS) and somehow gain access to the Err oject or something similar like you would using server.GetLastError() in VBScript? Thanks. ...

Classic ASP Server.MapPath not working properly

The site I'm working on is done in Classic ASP, and I'm trying to do it as best as possible. I've abstracted it out into a Rails-like directory structure: app_name - app - includes - helpers - lib - partials - public - stylesheets - images - javascripts I've created some Rails-like helpers, for examp...

How do I call .NET code (C#/vb.net) from vbScript?

I imagine I can compile a C# DLL and then expose it as a COM object so that it can be CreateObject'd from VBscript. I'm just not sure the steps involved in doing this... ...

Classic ASP Database error

Well I am querying my DB, a table called bookBilling, to get a value under the column of billingID. In my first query I get the customer ID from a table based on what value the cookie holds. In my second query I take that custID value and am looking to get the billingID associated with it. query = "SELECT custID FROM bookSession WHER...

Image Uploading with Classic ASP

Hey I was wondering if there were any way to upload images in ASP? I am working on my school's server and I don't really know what is installed and what isn't I Googled a little and came up with "Persits.Upload.1" I tried to instantiate the object with this line: Set Upload = Server.CreateObject("Persits.Upload.1") It gave me this er...

Regular Expressions in VbScript?

Does VbScript have a native implementation for Regex? I need to validate e-mail addresses on an old ASP application. Any pointers would be great. ...