asp-classic

Classic ASP session is aborting when site is hosted in Cloud Enviornmnet.

Hi, I'm storing my user details in the session variable. When some I/O operation happens the other users session also destroying. If I run the same application in the Single server environment the session is working fine. I have tested with this code also {meta name='test' content='Set-Cookie: ASPSESSIONID=494351627; path=/' /} What ...

Sending a binary stream to the clients browser

Hi, I was wondering if there is any difference in performance (or any other important factor) between a file sent to the browser from our server by this method : For i = 1 To fileSize \ chunk If Not Response.IsClientConnected Then Exit For Response.BinaryWrite stream.Read(chunk) Response.Flush Next VS the old plain file acc...

URL rewriting in asp

Hey all, Is it possible to rewrite the URL of a web (Including Domain of the web) to other domain. eg http://www.abc.com.au/article.asp?a=12&z=23 to http://www.xyz.com.au/artcle.asp or http://www.xyz.com.au/article.asp?a=12&z=23 if possible, any help or example... Thankyou. ...

Google Chrome https popup error

I have a secure page. In Chrome when I pop-up pages from that secure page, it displays an exclamation mark in both the parent and child address bars. When viewed on it's own the child page shows as secure (no exclamation mark) according to Chrome. How can I have popups from my secure page, and not induce these exclamation mark warni...

Classic asp radiobutton groups get values

Is there a way to iterate radio groups on a form post to do something with each radio button group? I have a varying number of radio button sets and need to get values and id's out of each of them on a postback. ...

Calling a .NET component from classic ASP - web.config not found

I have a classic ASP website (yes they still exist) that needs to call a .NET DLL registered for COM interop. A simple VBScript test indicates the component is properly installed. When the .asp page runs, it creates the component properly, but when a method is called there's an application-specific error message that leads me to believ...

Classic ASP form doesn't post on page refresh

I have an ASP page that takes two arguments on the querystring. On the page is a form that posts back to itself. If I do the form post once, and then try to refresh the page, it doesn't repost the form. It loads the page as though it were loading for the first time, missing the querystring values. Is there a way to ALWAYS force a repos...

I need a recommend for affiliate software in ASP or ASP.NET, any idea?

I need a recommend for affiliate software in ASP or ASP.NET, any idea? ...

IIS7 ASP classic Mysql and ODBC Driver problems

We have just moved our high volume ASP classic website from Windows server 2003, 32bit, iis6, Mysql to server 2008, 64bit, IIS7. We are experiance some truncated data and page slow downs on some pages that make a lot of calls on the DB. We are using ODBC Driver 3.51. We are pretty sure it is the ODBC driver but have no idea how to fix...

How to prevent XSS in a Classic ASP multipart form [URGENT]

I am calling on the collective mind of the stackoverflow community to help this novice programmer fix a major issue. I have a multipart form written in Classic ASP that is based on the code below. I use stored procedures and parameters to write to the sql DB, I use Server.HTMLEncode before it is submitted also. I have javascript based v...

Classic ASP MSXML2.ServerHTTP Post - Youtube Api

I am trying to build an application where i can upload files to youtube. I have gotten OAuth working, and Youtube is returning a session! The problem i am having is, youtube requires i make an XMLHTTP POST to get a url where i can upload through my web page. I have no idea how to make an XMLHTTP Post with the extra parameters youtube r...

mimetype file with asp

Is there a way to get the mimetype of a file by using asp? If just have the path to the file. ...

Finding checkbox value, writing to XML result

Hi, I'm creating a weekly HTML email writing template (hence the weird file name) and I'm using ASP and XML as the backend. The XML is prefect but the ASP isn't.. What I'm going for here is to create an XMl node that has a value of notchecked and checked depending on if the checkbox on the form is checked or not. I've tried using If ...

How to stop server-generated Word .DOCs from saving with "_files" folders?

I have a Word .DOCument that's being generated by a (classic ASP) server. It's an HTML file that's being output as a .DOC using the application/msword content type. The document is generated fine, saves fine, opens up fine in Word, and is fully editable... The problem occurs on the next document save in Word. A folder is created in the ...

checking if a xml node exists in ASP Classic

Hi, For a project I'm doing I have a varied number of nodes with node names of nib"number"_title So I'm using a for loop and within that loop I'm using getElementsByTagName to ge the node but It brings up an error if it's trying to find a node thats not there. Microsoft VBScript runtime (0x800A01A8) Object required: 'xml.getElementsByT...

Read Xml String From DB in Classic Asp - odd return

Hey folks, So I've got our legacy app which is classic asp and I've got a table that looks like this: CREATE TABLE ChangeRequests( ChangeRequestsId int IDENTITY(1,1) NOT NULL, XmlData nvarchar(max) NOT NULL) Naturally "XmlData" has xml in it. The Xml string looks like this: <?xml version="1.0" encoding="utf-16"?> <ArrayOfControlData...

ASP equivalent of PHP print_r

Plain old ASP, not .NET I've got a really large and complicated class for making an upload progress bar and I'm trying to find out the uploaded file name. I think easiest way to accomplish that would be dumping the variable structure but, even if it isn't (and I appreciate if someone can point me), I've ended up wondering about it and t...

Connecting to a named instance of SQL Server 2008 from classic ASP

My ASP application connects to the network server where SQL Server 2000 is installed with no problem. The old code that works: myConn.Open ("Driver={SQL Server}; Server=myNetwrkServer; Database=myDB; UID=myID;PWD=myPWD;Trusted_Connection=NO;") An instance of SQL server 2008 was installed on t...

Connecting from classic ASP app to an instance of SQL server 2008

Hi, My classic ASP app is connecting to SQL server 2000 installed on a network server. The current code works: myConn.Open ("Driver={SQL Server};Server=myNetServ;Database=myDB;UID=myID;PWD=myPWD;Trusted_Connection=No;") Now my app needs to connect to a named instance "SQL2008" of the SQL server 2008 installed on the same network serve...

Preventing SQL Injection in SQL Server TEXT fields using Classic ASP

I've got code in ASP that puts values into a Text field in SQL Server using parameterized queries. I was wondering if parameterizing is enough, or if I have to search the field for potential commands, replacing single ticks with double ticks,etc. The text fields are essays, so they might have any number of words or characters. Am I safe...