asp-classic

PHP Curl adds '\' to apostrophe character sending to ASP page

I have a 3rd party server which has a classic ASP page which takes in form data. From my web page I have a PHP script which sends fields to the ASP page using curl. Everything works fine except if a user includes an apostrophe character to the text. In the back end it is received as "\'". What is even odder is that it only does this ...

Windows Identity Foundation(WIF) - Does it work with legacy ASP?

I've seen a bunch of examples getting ASP.NET to work with WIF, but what about some of the old legacy ASP applications? We've got some sitting around our Intranet and I'm curious if the old code will work with WIF's authentication/authorization schemes. We won't be re-writing them for a good while. ...

Best practices for converting an existing website into a website with SEF URL

I've got a website that was created about an year ago and its been constantly revised since then. The website is coded in classic ASP, contains about ~50 pages -- some are multi-purpose, and contains old-school style links such as: /news.asp?PageIndex=4 /news.asp?SearchString=Obama /news.asp?SearchString=Obama&PageIndex=4 /news.asp?News...

ASP : File download of ASP page comes instead of executing it

I have an ASP page which will create a record set from an SQL query and create an excel page using that by using Response.ContentType = "application/vnd.ms-excel" property being set. When executing the file,it will show a save dialog for an excel file (whatever filename i have mentioned in Response.AddHeader) as Response.AddHeader "Co...

Should AspBufferLimit ever need to be increased from the default of 4 MB?

A fellow developer recently requested that the AspBufferLimit in IIS 6 be increased from the default value of 4 MB to around 200 MB for streaming larger ZIP files. Having left the Classic ASP world some time ago, I was scratching my head as to why you'd want to buffer a BinaryWrite and simply suggested setting Response.Buffer = false. ...

how to use gzip in classic ASP

Dear experts, I would like to use GZIP compression in classic ASP.I don't know the code for the same.Please help me what line of code should i put to use GZIP compression in classic ASP for my website. I also want to compress CSS and javascript.Suggest howto do that. Your help in this regard will be highly appreciated. regards, sunny...

How to import excel file in web page useing Classic ASP?

We are trying to open an existing excel file (2003) from server location in a web page and save it again in the same location using following syntax. Set ExcelReportApp = CreateObject("Excel.Application") ExcelReportApp.Workbooks.Open("http://bocntgcasd10/AppPortfolioCatalogrnd/Templates/DatabasesList.xls") It executes properly with o...

Gradually migrating Classic ASP 3.0 to ASP.NET MVC

I'm evaluating a migration from a classic ASP 3.0 application to ASP.NET MVC. I've already migrated applications to WebForms, but have decided to try MVC for this migration for a number of reasons, including the fact the code in this application is NOT spaghetti and seems to lend itself to an MVC style layout. One major constraint on th...

Classic ASP - using one connection for many queries?

Consider a classic ASP site running on IIS6 with a dedicated SQL Server 2008 backend... Scenario 1: Open Connection Do 15 queries, updates etc all through the ASP-page Close Connection Scenario 2: For each query, update etc, open and close the connection With connection pooling, my money would be on scenario 2 being the most effec...

Classic ASP super newbie question

OK, So I have recently moved into the world of Web development after spending quite a few years coding in a pretty simple proprietary language, and one of my first jobs is to tweak an old classic ASP page for one of our clients. I'm using Visual Studio 2008 to try debug some problems I am having, but the page won't load at all. If I brow...

Has anyone used Classic ASP with SQL Server 2008 and it's new FileStream feature?

I'm getting ready to use SQL Server 2008's FileStream capability but I'm not sure if Classic ASP can read and write from SQL 2008 FileStream. We still have an old application we'd like to update to support File Uploads to database and would like to consider FileStream. If needed I can build a COM object via .NET to handle this but would...

Can i embed an image on my asp send mail?

hello all i have a client that has old school asp. Is it possible to edit the asp file to embeded an image? i only have the asp file and inside that asp file it has an auto response form like this body = "Dear " & cName & "," & vbcrlf & vbcrlf & "Your request for the " & vehHeader & " (" & FormatCurrency(vehPrice)& ")" & " has been rec...

How do you Debug/Run classic asp pages in Visual Studio 2008?

Whenever I try to open a classic asp page while running the site in VS2008 I get the error: "This type of page is not served". How do you Debug/Run classic asp pages in Visual Studio 2008? AnthonyWJones has the correct answer but it is not letting me select an answer for some reason. Here is a tutorial I found that goes into more deta...

Access and classic ASP error 80004005 System resource exceeded.

An old site on shared hosting has developed an error when executing a simple SQL statement Microsoft JET Database Engine error '80004005' System resource exceeded. /411971/users1.asp, line 68 Line 68 is Set objCon = objCommand.Execute The Access database isn't large (less than 2Mb), this is a single table query and the table only c...

Formatting floating point numbers in ASP

A friend asked me to update his shopping cart software. It's written in classical ASP using IE's JScript. I can't seem to format the variables correctly. . <% if (oOrder['product'] == "camera") { %> <%= format_float(oOrder['cost'], 2, 3)/2 %> <% } %> %> When I do this I get a bunch of jibberish with regards to the output...

Debuging Classic ASP causes Visual Studio 2008 to Crash - How To Fix?

I'm debugging classic asp code using VS 2008 sp1 on windows 7. Everything works great, I attach to the process and can debug. However, If I stop debugging visual studio will crash. I read the recycling the app pool would help, but it has not helped me end a debugging session with out crashing. I have hunted through Google and stack o...

IIS7 and Classic ASP Sessions

I've got an old web app written in Classic ASP which used to run on an IIS6 server no problem, then long story short, I moved it onto a Linux server running SunOne ASP which also worked fine (after a couple of minor tweaks), and now in a bid to access some 3rd party COM controls the app originally used, I've moved it back again to a Wind...

Uploading in ASP to IIS 5.1

First - I know XP isn't great at hosting, but as the site is only for my personal use, and I already have an XP licence, that's what I'm using... I'm using the pure asp upload script from link text to upload images to a website hosted on a Windows XP Pro pc. The upload script works great on other sites I have developed but these were a...

Eclipse – ASP classic plugin

Where can I find an Eclipse plugin for ASP classic? ...

ASP IDE on Windows

What is the best free alternative to Visual Studio for ASP development on Windows platform? ...