asp-classic

Can't the ASP file system object access shared server paths?

I am using this code to access files and folders: <%@ Language=VBScript %><% option explicit dim sRoot, sDir, sParent, objFSO, objFolder, objFile, objSubFolder, sSize %> <META content="Microsoft Visual Studio 6.0" name=GENERATOR><!-- Author: Adrian Forbes --> <% sRoot = "D:Raghu" sDir = Request("Dir") sDir = sDir & "\"...

How to go about from ASP.Net to Classic ASP for new project

How to go from ASP.Net to Classic ASP; I have been assigned to new project which is in Classic ASP and I have never worked on Classic ASP but have exposure to .NET ...

Session cookie issue in IE8 for Classic ASP code running on IIS 7.5 (Windows 7)

I needed to run a development server for our Classic ASP intranet application on a Windows 7 machine at home, and managed to install it with no problems, except that session data does not seem to store on IE8 browsers, but works fine on other browsers. If I write a simple script just to see the session ID and see what happens when I ref...

Invalid authorization specification error with Classic ASP accessing SQL Server

Hi, I am getting the following error: Invalid authorization specification I've narrowed down the error to my connection string. I have verified the server name, database, user & password are correct. Here is the string: "Provider=SQLOLEDB;Server=xxxxx.db.12345.hostedresource.com;Database=foo;UID=fooUser;PWD=fooPW" The SQL server is...

Dynamically loading CSS and JavaScript using Prototype

I have a classic ASP application that I've been constantly trying to modularize. Currently, almost all pages are divided in to two pages: an outer page that contains the layout, header, sidebar, footer an inner page that contains ASP code The outer pages use dreamweaver templates so updating layout and replicating changes is easy. Th...

Server-side Javascript in production fails to open connection to a named instance of SQL2008

I've got a production site that has been working for years with a SQL Server 2000 default instance on server named MDWDATA. TCP port 1433 and Named Pipes are enabled there. My goal is to get this web app working with a copy of the database upgraded to SQL Server 2008. I've installed SQL2008 with SP1 on a server called DEVMOJITO and teste...

Detect mobile user agent from classic ASP and redirect on session start

I'd like to detect a mobile user agent and redirect them when the session starts in a classic ASP app. Does anyone know a good way to pull this off? ...

How can I create a DOTNET COM interop assembly for Classic ASP that does not sequentially block other threads?

Setup -- Create a simple COM addin through DOTNET/C# that does nothing but sleep on the current thread for 5 seconds. namespace ComTest { [ComVisible(true)] [ProgId("ComTester.Tester")] [Guid("D4D0BF9C-C169-4e5f-B28B-AFA194B29340")] [ClassInterface(ClassInterfaceType.AutoDual)] public class Tester { [STA...

ASP: Building a master page?

Is it possible to build some kind of Master page with classic ASP WITHOUT frames or iframes? I'm thinking if there is a way to include content pages to the main page like in ASP.NET master pages. From what I have researched ASP classic does support include of other ASP/HTML pages on a page, but the value put into this include means the ...

Multiplying 2 Columns

Hi, I am very new to asp and having following problem I am getting 2 values from 2 column, from database and when i try to multiply them, its giving following error Error Type: (0x80020009) Exception occurred. This is my code totalPrice = totalPrice + rs("ProductQunaity") * rs("ProductPrice") Even if someone can tell me what shou...

Detecting null/empty input from user

How i can check if user has input null/empty string in classic-asp? Right now i am doing this. If Request.Form("productId") == "" Then 'my code here End If But its not working. ...

Variable Number of Input Fields in Classic-ASP form

Hi, I have a check out form where number of products can be "n". So how i can know how many input fields are in the form and take input from it? Thanks ...

Jquery and DatePicker - change calendar by the date in the input field

i have the value polled from the db and if the user want to change it - i want the calendar to be set first to the date already in the field im using asp and this picker http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/ ...

How does Facebook detect images when adding a link?

When you add a link to your Facebook page, after some processing, Facebook presents you a next/prev button to choose an image linked to the url your are inserting. Obviously, Facebook reads the html-page and displays the images found on the url you insert. Does anyone knows what algorithm Facebook uses to decide what images to show ? ...

passing folder path from an asp file

i am using this code to navigate through the folders available on a remote computer. <%@ Language=VBScript %><% option explicit dim sRoot, sDir, sParent, objFSO, objFolder, objFile, objSubFolder, sSize %> <META content="Microsoft Visual Studio 6.0" name=GENERATOR><!-- Author: Adrian Forbes --> <% sRoot = "\\iflblw-bpd-12\Vercon_IP...

Is there a way to advance through a for loop by a value instead of one by one in VBScript?

I have a one dimensional array in VBScript that I would like to run through but have the ability to advance by 2,3,4 etc. on each iteration of the loop. In C this would be trivial as... for (int i = 0; i < 10; i+= 2) ...

hilo generator in classic asp

Is it possible to implement a hilo generator in classic asp? How would this be done? ...

Returning several COUNT results from one ASP SQL statement

Say I have a table like this: Field1 Field2 Field3 Field4 fred tom fred harry tom tom dick harry harry and I want to determine what proportion of it has been completed for each field. I can execute: SELECT COUNT (Field1) WHERE (Field1 <> '') AS Field1Count SELECT COUNT (Field2) WHERE (Fi...

Is there a way to get Visual Studio to provide intellisense for late-bound objects in classic ASP?

I'm working on a Classic ASP (with VB Script) project where I'm instantiating an object from an ActiveX control like so: Dim objHelper Set objHelper = Server.CreateObject("HelperLib.HelperObj") Visual Studio 2005 provides intellisense for the first "layer" of properties and methods, but it can't seem to see properties and methods that...

Store locator w/ google maps in classic ASP

I can't find anything on how to create a store locator with google maps using classic ASP (not .net). Can anyone help me out with this? I have looked everywhere. ...