asp-classic

ASP 3.0 Application object

I need to know if the application object in ASP 3.0 is shared between all the web site in the same application pool in IIS or it's one application object by site in the same application pool in IIS. Thanks ...

ASP - Using Function parameter to refer to recordset

Sorry if the title is a bit vague. I couldn't think how else to say it! I have a script which retrieves data into 3 different recordsets. They are called rs1, rs2 and rs3. I have quite a large piece of code later on in the script so I have created a function to save save space etc. Within the function I wish to use the information fro...

Creating the shortest possible case-insensitive verification number

This is going to be a little long and rambly, but I want to make sure everything is in the proper context. Back in 2004 I wrote an online Learning Management System using Classic ASP and VBScript. I'm now working on some upgrades (and periodically asking myself WTF I was thinking when I wrote various segments of code...), and I want to ...

Classic ASP/VBScript implementation of Crawford's Base32 Encoding

Moving on from the first part of my problem, I'm now working on trying to write a Classic ASP/VBScript implementation of Crawford's Base32 Encoding. Time is tight on this particular project, so while I am working this out on my own, I'm hoping someone has something readily at hand (or can at least whip one up faster than I can). ...

SQL server timeout

Hi, my application is developed on classic asp, but also uses asp.net as I am migrating the application on .Net. Its using SQL server as database and hosted on Windows server 2003. Now the problem is that the application continue to work perfectly fine for a long time but then after some time SQL server gives timeout error and it could ...

To Host Silverlight Application on a Classic ASP page

Hi there, Is it possible to host a silverlight application on a classic asp page? I see examples where the silverlight application is hosted on a html page, and I do understand that Silverlight is a client side language, but since I need to pass data from the page to the silverlight application, I am not too sure what to do. PS: the si...

Why mail code is not working

Set objCDOSYSMail = Server.CreateObject("CDO.Message") Set objCDOSYSCon = Server.CreateObject ("CDO.Configuration") Set Flds = objCDOSYSCon.Fields Flds.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 Flds.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "any mail" Flds.Item("http://schem...

Send file using Response.BinaryWrite() and delete it afterwards

As part of a Classic ASP Project the user should be able to download a file - which is dynamicly extracted from a zip archive and sent via Response.BinaryWrite() - by simply calling "document.asp?id=[some id here]". Extracting and sending is not the problem but I need to delete the extracted file after the download finished. I never di...

SQL server timeout issue

Possible Duplicate: SQL server timeout Hi, my application is developed on classic asp, but also uses asp.net as I am migrating the application on .Net. Its using SQL server as database and hosted on Windows server 2003. Now the problem is that the application continue to work perfectly fine for a long time but then after some t...

Reliably convert a string to a double independent of regional settings in classic ASP?

I'm working on a legacy classic ASP interface between our client application and the server. This is not a website, just an intermediate layer in ASP (I know this is not the preferred way of doing things, told you it's legacy and it can - unfortunately - not be changed at this point). So I'm sending a double value as a parameter on the ...

classic asp image upload with flex

Is there a way to upload an image using flex inbuild .browse() and classic asp? So in flex the user picks the image they want to upload, press a button to start sending it. A asp handler then gets the file, uploads it to a folder and then writes the filename in a database. Writing of the filename in the database is no problem. ...

listing all friends

I have F.FRIENDID, F.MEMBERID columns in FRIENDS table and M.MEMBERID, M.FIRSTNAME, M.LASTNAME in MEMBERS table. I want to list all friends' of signed in member. Issue here is, signed in member's ID can sometimes be in FRIENDID row or MEMBERID row in FRIENDS table. That is because when member adds another member, his or her ID is recorde...

Get SQL Server schema via a SQL query?

I've inherited a clunky and horribly un-documented site from a bad developer and am trying to get a look at the database schema. Unfortunately the web host is the worst I've ever dealt with and has no control panel capability for viewing the db schema or even exporting tables. Is there any way that I can get a look at the schema via a S...

Parse Server.XMLHTTP YouTube response with ASP Classic

Hi. Thanks for reading. I'm trying to parse an xml response from YouTube but I'm completely blocked, hehe. Well, What I've got until now is this: <% Option Explicit Response.Buffer = True Dim videoVimeo, videoYoutube videoVimeo = "http://vimeo.com/5866977" videoYoutube = "http://www.youtube.com/watch?v=d8nxjUlb...

will asp run in .net 1.1 framework?

I have an old asp app I am moving to a new server with .net 1.1 Will it run in this environment? ...

ASP - Determine if current Script is being run as an include

Lets say I have the following pages: # Include.asp <% Response.Write IsIncluded() & "<br>" %> # Outside.asp <!--#include file="Include.asp" --> I need this to work such that if I access http://Example.com/Include.asp directly, I see "True", yet if I access http://Example.com/Outside.asp I see False. I'd perfer not to have to add an...

VB syntax for response.addheader

i'm placing a automatic redirect on my Classic ASP page (vb). i want to call the url from a variable (url2) versus hardcoding it. just need to know what the right syntax is. this is my current code: Response.AddHeader("REFRESH","10;URL=url2") ...

global.asax and classic ASP?

Now please excuse me if this is a stupid question - BUT... In my ASP.NET apps, I have a global.asax file that catches an error and emails me the details. 'Could' I put the global.asax in the root of a classic ASP file and if there was an ASP error it would trigger the global.asax? Again sorry if this is a dumb question.. If not any ...

Can we use Flex 3.0 for ASP 2.0

Hi All, I am a Java developer with knowledge and experience in classic ASP 2.0. In our organization we have couple of products in Classic ASP 2.0 built some 6 years ago. We want to have new functions & modules built in Flex 3.0 (making use of rich UI) with in the existing classic ASP 2.0 Application. such that we dont reenginre the ent...

Connecting to MySQL database with ASP on a virtualized Windows 2003 x64 server

Hi, I'm trying to connect to a MySQL 5 database using the MySQL ODBC 5.1 driver. In the control panel's ODBC settings I created and tested the ODBC connection and it's working fine. When I try to use the connection from VBScript code I get an error though: ADODB.Connection error '800a0ea9' Provider is not specified and there is no desig...