asp-classic

How to detect screen resolution in (classic) ASP

Hi, I want to detect users' screen size and pass this into a charting application (Chart Director by http://www.advsofteng.com) to control how big an image to display. I have to use ASP, but I can only think to use JavaScript to detect screen-size and then pass this into the server-side script. Is there an easier way? Thanks ...

.NET can't find the cookie that I created in classic asp in some cases.

I'm the only developer supporting a website that's a mix of classic asp and .NET. I had to add some .net pages to a classic asp application. This application requires users to login. The login page, written in classic asp, creates a cookie that .net pages use to identify the logged in user and stores information in session vars for the o...

IIS site on UNC share: is it problematic?

I am working with a legacy ASP Classic solution which is load balanced (via external hardware and has an IIS site the home directory of which is an UNC path. I've been told that the following issues with this setup currently exist: When using an UNC path as home directory, there is an "index" somewhere in IIS which "caches" up to a ce...

Optimistic vs. Pessimistic locking

I understand the differences between optimistic and pessimistic locking*. Now could someone explain to me when I would use either one in general? And does the answer to this question change depending on whether or not I'm using a stored procedure to perform the query? *But just to check, optimistic means "don't lock the table while re...

Single best programming asp-classic book?

Does anyone have a good classicasp book they can reccommend, including best practices, good design. I am stuck in Classicasp land and I want to make sure I do it right. Please up vote the best one. ...

Classic asp - When to use Response.flush?

We have a painfully slow report.I added a Response.flush and it seems a great deal better. What are some of the caveats of using this method. ...

Is classic ASP still a alternative adverse other languages for new projects?

There are a lot of webs still using classic ASP instead of ASP.NET but that is not the question - "never change a running project". The question is if it is still a first choice as a base for a new web-project or would it be worth to switch to ASP.NET? Would you recommend a classic ASP programmer another language to switch over? There w...

Refactoring "include file hell"

One thing that's really been making life difficult in getting up to speed on the codebase on an ASP classic project is that the include file situation is kind of a mess. I sometimes find the function I was looking for being included in an include file that is totally unrelated. Does anyone have any advice on how to refactor this such t...

Classic ASP SQL Injection Protection

What is a strong way to protect against sql injection for a classic asp app? FYI I am using it with an access DB. (I didnt write the app) ...

Response.Write vs <%= %>

Bearing in mind this is for classic asp Which is better, all HTML contained within Response.Write Statements or inserting variables into HTML via <%= %>. Eg Response.Write "<table>" & vbCrlf Response.Write "<tr>" &vbCrLf Response.Write "<td class=""someClass"">" & someVariable & "</td>" & vbCrLf Response.Write "</tr>" & vbCrLf Respon...

"Class does not support automation" error when i call Request.ServerVariables("remote_host")

I'm in the process of writing a basic cookie for an ecommerce site which is going to store the user's IP among other details. We'll then record the pages they view in the database and pull out a list of recently viewed pages. However i'm having an issue with the following code. dim caller caller = Response.Cookies("caller") if caller ...

Microsoft Search Server 2008 Express Edition from Classic ASP or ASP.NET

We have a new installation of Microsoft Search Server 2008 Express Edition on one server and it's nicely indexing our intranet (on another server) which we can search from the provided search form on the search server. I'd like to customise the search results so that they actually look like our intranet has generated them and also place...

Sorting a collection in classic ASP

It's quite a simple question - how do I sort a collection? I've got a CSV file with rows in a random order. I'd like to sort the rows according to the date in one column. Do I add the rows to a recordset? Can I sort with a Scripting.Dictionary? I've clearly been spoilt with .NET and Linq, and now I find myself back in the land of class...

Classic ASP Intranet and New ASP.NET Applications

We have an existing classic ASP intranet consisting of hundreds of pages. Its directory structure looks like this... /root app_1 app_2 ... img js style Obviously app_1 and so on have better names in the actual directory structure. Even though the many applications have different behaviour, they are all part of...

Websphere with Classic ASP

Is it practical (or possible) to create a Websphere Portlet for a Classic ASP website? ...

generate HTML document server-side with jquery and classic asp

Here is my question, Would it be possible, knowing that classic asp support server-side javascript, to be able to generate "server side HTML" to send to the client like Response.write $(page).html() Of course it would be great to use jQuery to do it because it's easy to parse complicated structure and manipulate them. The only prob...

What is the size limit of the application object in classic asp?

I am creating an ASP script that uses the application object to store the pages. The question in my mind is whether there is a size limit to this object. Anyone know? ...

Application Object and Concurrency Concerns

In some asp tutorials, like this, i observe the following pattern: Application.Lock 'do some things with the application object Application.Unlock However, since web pages can have multiple instances, there is an obvious concurrency problem. So my questions are the following: What if one page tries to lock while the obje...

Is there a caching script for classic asp?

PHP has a number of opcode caches, which as i understand it are scripts that handle the caching aspects of an application. Is there something similar for classic asp, especially something that does not require component installation? Regarding the IIS caching behaviour, it seems from reading here that the behaviour is relevant to some s...

How to run classic ASP scripts under IIS 5.1 (WinXP Pro) alongside .NET & CF?

I'm running into a problem setting up my development environment. I've been working on ColdFusion and .NET applications up until recently I haven't needed to touch IIS. Now, I have to set up a classic ASP application for some one-off work. I added a virtual directory in IIS and pointed it at the actual codebase on my local machine. I th...