asp-classic

Classic ASP on Localhost, no form data?

I have a really odd situation going on on my local PC that I can not seems to resolve. Recently I have been contacted to extend a classic ASP website that I wrote a few years back. I unpacked the code into a sub folder of wwwroot on my current machine running XP pro. It has never had any classic ASP sites running on it. I set up IIS and...

Convert this C# code to Classic ASP / VBScript??

I know this sounds backwards, but I have to convert this from C# to Classic ASP. I don't know any VBScript so I need help. In my C# code, it is reading appkeys in the config file, parsing them, and using loops to perform a process. I don't know how to do dictionaries and I/O stuff in VBScript. Can someone please help with this? These a...

Visual Studio 2008 Scans Web Project When Closing - Why?

At first, I though my VS2008 Pro SP1 (on XP Pro + SP3) was hanging when I would close a web project on a remote server, but after checking it out with netmon, I can see it is accessing the site a bunch of times (it's a Classic ASP site with a couple hundred ASP pages). I then checked out the IIS 6 logs on the site and it's POSTing to ...

What is the difference between Application("Something") and Session("Something")

While debugging a classic ASP application (and learning about classic ASP at the same time) I've encountered the following Application("Something") = "some value" and elsewhere in the code this value gets used thus: someObj.Property = Session("Something") How does the Application object relate to Session? ...

What are some useful strategies for converting a Classic ASP application to ASP.NET

We have a ten-year-old ASP application that we are considering planning an update for. We want to take advantage of the new technologies that ASP.NET has to offer, as well as the opportunity to fix some issues with the existing framework (the existing code-base is highly fragmented, nearly impossible to test, let alone debug, and the en...

Language choices when porting a classic asp app to .NET

First, let me ask you to consider this as a real question, and not a subjective one. That out of the way, here's my situation: We are looking to port our existing classic ASP application to .NET, but we're unsure of what language to use for the new app. I personally would 'prefer' C#, as I'm more familiar and comfortable with that lan...

Parse single XML entry in classic ASP

Hi Everyone, I am trying to parse a single XML entry with no name in ASP classic and having issues getting it to resolve to an object? Here is what I am trying: result = xmlDoc.selectSingleNode("//Boolean") I have also tried: result = xmlDoc.selectSingleNode("//Boolean").Attributes.Text Neither of them return an object, this is m...

How to get Client Computer and user name in Classic ASP in local intranet site

Hi, We have been ruuning an ASP application in local intranet using IIS7 and now have requirement to get Client computer name and logged user name, so that we can show his home page according to his setting.I did search on internet but did not find any solution yet.I also tried using LOGON_USER server variables but it works fine when I r...

VB6 and ASP - any difference between Application.Value() and Application.Contents.Item() ?

I'm trying to debug some old code in a VB6 application called from an ASP page. At a certain point in the page life cycle, I'm getting an "Object not set" error for either ASPTypeLibrary.ScriptingContext.Application.Contents.Item or ASPTypeLibrary.ScriptingContext.Session.Contents.Item I notice that some other code in the function us...

asp-classic to .NET conversion... i could use some suggestions

i'm converting a classic asp website to .NET and could use some suggestions to this problem. original code: Dim oCountCMD oCountCMD = Server.CreateObject("ADODB.Command") With oCountCMD .ActiveConnection = Application("ConnString") .CommandText = "sp_GetSearchHistoryCount" .CommandType = .CommandType.StoredProcedure .oC...

unrecognizable code in classic ASP; need .NET conversion

oXML = Server.CreateObject("Msxml2.DOMDocument.4.0") oNode = oXML.createElement("CommonCustomerSearch") can someone explain what the lines of code above are doing? i'm more interested in the first line as the method it is written in exits when it hits that line, so apparently the variable oXML isn't being set. i know that oXML is supp...

asp/vb6 to .net 2.0 - help

oXML = Server.CreateObject("Msxml2.DOMDocument.4.0") oNode = oXML.createElement("CommonCustomerSearch") oRoot = oXML.appendChild(oNode) can someone post a .NET 2.0 equivalent of the above lines of code please? i actually found some sample code that seemed to be what i was looking for, but i believe it was using .NET_4 classes. i need a...

Display query result and export to excel using classic asp

I'm working on a small project regarding classic ASP and sql server. I have a drop down menu where the user can enter name, last name, etc. and it will create a query based on that and create a table displaying the result. What I want to add is the option to export to excel after the table is created. I've looked at other tutorials but...

Complete Classic asp page not rendering sometimes for some users (response.buffer?)

I've got a fairly complex classic asp page that for some users doesn't render completely at some times. I wonder if the response.buffer property might have something to do with that. Would setting it to false make it more likely to render completely? I suspect it's crapping out at some point but can't reproduce it on my end. ...

problem: onclick event in dropdown

Hi all, I have a dropdown menu and all i want is that when i click on Italian in the dropdown, the content for italian will show... Basically what i want is to set the action to IT when i select Italian from the dropdown.. Any help please?? <% action = Request.QueryString("action") %> <form name="contentchanger" action="/...

Session is lost on new request in classic asp site

This isn't easy to explain, but I'll try my best. The issue has started happening in a site that was built some years ago using classic asp, the symptom is that the administrators log-in using a form and then an session variable is set, but suddendly when they request a new page they are prompted again to log-in. This problem isn't spe...

Utilize ADO.NET within Classic ASP script

I'm writing some simple queries which return a single value and I'd like to get the ADO.NET ExecuteScalar method's behavior from Classic ASP's ADO libary. However, I'd prefer to not re-invent the wheel. Is it possible to instantiate ADO.NET's Command object within classic ASP? If so, how would I go about doing that? If I do need to re-i...

cannot make ASP.NET call from ASP return a String[] that's usable

I definitely searched for this, but I can't find the answer, even though it seems so trivial. I have a variable in ASP.NET that returns a string. string[] arrayOfThings { get { return new string[] { ... } } } And I have call to it in ASP Dim someString For Each someString In someClass.arrayOfThings # Do Something with someString...

Unicode characters show differently in different browsers

So... I'm still in unicode hell... New problem... On my computer, everything shows perfectly. In all browsers. On a co-workers computer, same story. Everything is good. Even in elinks and w3m on one of my Linux VPS'es all the exotic diacritics of Lithuanian and Latvian, and nordic letters, shows perfectly. However, I have had a few ca...

VBScript seems to be GC'ing objects from nested scopes in the wrong order.

I have the following code: function p (str) Response.Write VBLF & str end function function nop: end function class Test1 private sub class_initialize p "Test1 Start" end sub private sub class_terminate p "Test1 End" end sub end class class Test2 private sub class_initialize p " Tes...