asp-classic

IIS path logic (How to redirect / display page based on URI)

Hi I have a website where my customers can login. Some of them complains that the URI is too complicated. It is unique for each customer and looks like this: http://www.example.com/login.asp?rld=213&companyID=127432 What I would really like is to have a path like this one: http://example.com/Wallmart (Wikipedia does this) I´ve tr...

Legacy activeX control calls DLL functions - I need help

Hint: this one might sound complicated, because I am trying to give as much info as possible, but I suspect that I just want someone to tell me "yes, you are correct". On this legacy system, which dates from 2002, the user visits a web page and uses an RFID reader to read a tag number, which is then written to an input field on the web ...

specified cast is not valid error on development but not on test server

I have a .Net 2 solution with some asp classic pages. I get a specified cast is not valid error when I access the page on my local. Below is the vb function where I get the Error: Public Function Retrieve(ByVal vntSeqId As String, ByRef vntPart As String, ByRef vntPartKey As String, ByRef vntEntDate As String _ , ByRef vntStat...

Classic ASP to ASP.NET 2.0 conversion

can i have some general advice on converting a classic asp site to asp.net? i've never worked with classic asp before and have only worked with asp.net 2.0 for the past 6 months or so, so this is completely new to me. i noticed that this site i'm wokring on uses a few 'include' files. i know i should probably take the code from the incl...

Turn off automatic quote insertion in Visual Studio 2010

I am editing a huge number of legacy ASP pages that have been converted over to C#. One problem is that the HTML attributes need to be adjusted to correct some double quote problems. My problem is that when I add a double quote VS dutifully inserts the closing quote in the wrong place. I then need to go an delete that quote and enter t...

ASP.NET page using only Response.Write

Let's say I have some Classic ASP pages that produce all output via Response.Write. I would like to port these pages over to ASP.NET, but (at least initially) avoid a total rewrite. How should I set up my ASP.NET project to facilitate this? I assume I would have empty .aspx files and put the VB.NET/C# equivalent of the VBScript code in...

Oracle connections exhausted by IIS

Our Oracle (9i) DBA called me to report that my IIS (v6) web server has exhausted the available connections. I created a test page (Classic ASP) that basically creates ADODB.Connection and ADODB.Recordset objects, connects to a database, opens a basic recordset, loops through it, closes the recordset and connection and sets the objects...

Merging two ASP/ASP.NET apps into a Single application in VS2010 WebDev

I have a web application that has been built as two. One is physically located within the file structure of the other. I am trying to integrate the child app into the parent app and consolidate all classes to the parent, to begin large scale ASPclassic-to-ASP.NET conversion of this app. Also, I'm trying to do this without creating a n...

How to force application pool to recycle in Classic ASP (not using IIS Management Console)?

I am maintaining an old Classic ASP site for a friend that is hosted on a cheap shared host. They are getting errors that will be solved with an Application Pool recycle. However, the hosting control panel doesn't have any sort of options to recycle the app pool and the hosting company themselves are non-responsive to support requests....

insert utf 8 encoding to sql db in classic asp

Hi, I am trying to insert into sql db japaneese character and it goes to db as ??? do you know what am I doing wrong? ...

Inconsistent #include css look

For some reason, I'm having a problem with these two pages on my website that should have some elements look the same, but for some reason, they look a little bit different. I have some included asp files which are linked to the same CSS files, so that is why I believe they should be the same. The spacing looks off on the about.asp pag...

ASP dynamic URLs from SQL Server database

Hey everyone, I have a database which contains my product info, which you can see connected to a catalog page here: http://www.marioplanet.com/catalog.asp I would like now, to have product pages created, with the URLs being generated by a certain name in my database. For example, if you point your browser to the link above, and look a...

ASP Classic - convert base64binary string to byte array

Hello, I am trying to convert a base64binary string to a byte array in classic ASP. StrConv() doesn't exist in ASP. My objective is to take the base64binary string received from a web service call, and write the binary format to a file. thanks, -m ...

Can I set CharSet for every page load? (Classic ASP)

I have made some changes to a Classic ASP application which breaks foreign letters unless "Response.Charset = "utf-8"" is set in every page... And it's a lot of pages... Could I force the Charset to utf-8 for every page without having to set it in each page? ...

Adding features around Classic ASP Application

I will be adding new pages and adding functionality to current pages. I would basically like to use new technology and but I don't know how should I add it to classic ASP pages In other words, can I <#--include--> an aspx page in Classic asp page? Or anything of that sort, may be creating a user control in ASP.NET and using it in class...

Is it worth learning classic ASP?

I know the differences between ASP and ASP.NET generally, as I am new to both, so I don't understand all of them, but I get the fact that ASP.NET is built on top of Microsofts .NET framework, and is the next generation of ASP, but it's built from the ground up. W3Schools and another question here on SO provided great help explaining the...

Implementing OpenID (DotNetOpenAuth) with Classic ASP

I've spent countless hours reading through documentation all over the place and I'm still having a problem with implementing the Classic ASP samples provided in the the latest version of DotNetOpenAuth (3.4.5.10202). Specifically, I'm not sure what values I need to change in the login.asp in order to see if it works / will work for me. ...

How to prevent 'DROP BOBBY TABLES' when user enters a password with special characters?

In our ancient Classic ASP environment, we utilize OWASP to get the password from the request object and encrypt non-alphanumeric characters. This is a first line of defense to preventing sql injection. We use other methods for full sql injection prevention. The problem is, when we are collecting data to put together an HTTP post mess...

Topics I should learn for converting this Classic-ASP code into ASP.NET? Mainly SQL Server Database Access..

Hey guys, So, I have a very simple bit of ASP on my website currently, which you can check out here: http://www.marioplanet.com/catalog.asp Just ignore the CSS issue for now! :) Anyway, so, I have a SQL Server table in a database, and I'm pulling some information from it to make a shopping catalog of all my products. I was wondering...

Integrating Jquery timeout code into a classic ASP form in an ASP.NET application

I wrote a Jquery function that blacks out the screen after a certain amount of inactivity, creates a pop-up that allows the user to click a button to stay logged in, and logs them out (closing the application window) if they do not respond in time. The environment is ASP.NET (VB). We don't technically use master pages, but we do have a ...