asp-classic

How to get the *actual* client URL from a Classic ASP Request?

Trying to do some SEO healing on an old (Classic) ASP site. The main page has long been home.asp but we want all inbound links to go to the site root ("/") instead. Made the changes to the pages but now we need to do a redirect so we don't have broken legacy inbound links. I basically want to do this: <% if Request.ServerVariables("P...

Calling Stored Procedure on classic ASP page

I've been struggling all day calling a Stored Procedure from a classic ASP page. I have a few basic noobie questions. First, is this the best way to add a parameter to my command: cmd.Parameters.Append cmd.CreateParameter("@SubmissionDate", adDBTimeStamp, adParamInput, , txtDate) Second, is adDbTimeStamp the proper type to use when ...

classic asp obfuscate

Hi, I have a small classic asp site and I am concerned that a client may stop paying me. The site is on their server, so I basically want an "off switch" in the event they stop paying me. I couldn't think of a good way to do this as they have a tech person who has access to the server, so any code I write to stop the site would be eas...

Dev Environment in IIS

I am setting up an IIS server to do some ASP programming, just as soon as I solve this very relevant pre-programming problem... The IIS server is located in a VirtualBox server, and I'm setting up a virtual directory to point to a shared directory ("a share located on another computer," e.g., \\server\serve-this) which works perfectly ...

Accessing ASP.NET membership stored procedures from classic ASP page

I have a classic asp site that requires login functionality. There is an ASP.NET administrative site where logins will get set up. I'm thinking about using ASP.NET Membership to manage/store the login information, and on my ASP site access the data through the Stored Procedures. Am I asking for trouble here? Has anybody successfully ...

visual studio recognizing .asp properly or suggestion for classic asp editor/iDE

How do I get visual studio 2005 to work best with .asp files? I used to have this on my old PC but I can't get the settings right. I exported and important all my old settings and still no dice. alternatively I think there might be an even better choice for classic asp IDE editor. It'd be nice to have intellisense, completion, high...

Search Engine way to take .ASP pages to .PHP

I have basic .ASP pages running on a windows box. I want to migrate them over to a Linux host and of course have to convert them to .PHP and keep like Google happy. If my site's fairly popular in the search engines how is the best way to do this? There's a lot out there on the net about this, I just want to make sure I'm going at it t...

Sort XML data in classic ASP

I want to sort below xml, Based on the Adult and child ( i need to take Adult and child as constant): <HotelDetails> <hotel> <rooms> <room> <roomname>Single</roomname> <Price>100</Price> <Adult>1</Adult> <child>0</child> </room> </rooms> <rooms> <room> <roomname...

Convert SQL code that uses XML/XPath to VBScript (classic ASP)

I want to convert below SQL Server code to VBScript in classic ASP... DECLARE @idoc int DECLARE @xdoc nvarchar(4000) DECLARE @xmldoc xml Set @xmldoc = '<Root><Authors au_id="409-56-7008" au_lname="Bennet" au_fname="Abraham"><Titles title="The Busy Executive&apos;s Database Guide"/></Authors><Authors au_id="648-92-1872" au_lname="Blotche...

How to Get the Time When IIS Started With Classic ASP?

How to Get the Time When IIS Started With Classic ASP? ...

Implementing search feature on jqgrid?

I tried so hard, I dont understand what is missing in my codes. ASP CODES: SEARCHFIELD = Request.QueryString("SEARCHFIELD") SEARCHSTRING = Request.QueryString("SEARCHSTRING") SEARCHOPER = Request.QueryString("SEARCHOPER") JSCODES: var lastsel; $(function() { $("#list").jqGrid({ url: 'orders.cs.asp?Process=ViewOrders',...

Accessing classic asp (http)context from a .net wrapped with COM interface?

I don't know if it's possible, but suppose you want to handle reading/writing of cookies on a classic ASP page from a COM object. The COM object is written in .net and wrapped with a COM interface to make it accessible from classic ASP. For clarification - my question is this: Is it possible to access the ASP context inside a .net asse...

How to sort xml data using classic asp(vbscript) with out xpath?

hi, this is my xml <rooms> <room> <roomname>Single</roomname> <roomid>1</roomid> <Price>100</Price> <Adult>1</Adult> <child>0</child> </room> </rooms> <rooms> <room> <roomname>Double</roomname> <roomid>2</roomid> <Price>200</Price> <Adult>2</Adult> <child>1</child> </room> </rooms> ...

Posting xml from classic asp to asp.net

I apologize if this has been asked before. I searched and didn't find anything that matched my situation. Also bear in mind I am fairly new to asp/asp.net development. My current project is a relatively simple e-commerce site. The customer will connect to the site, select products, input shipping and billing information, payment info...

Classic ASP

i have several development sites on my wix xp laptop (all classic asp). Doe anyone know why i need to type localhost/site/default.asp (i keep getting a 405 error on iis 5.1) and not just localhost/site thanks ...

Classic ASP Session ID Cookie Lifetime

In my classic ASP application, the ASP session ID related cookie gets lost when the client closes his browser, Even thought the session didn't timeout. So... How to make ASP session ID cookie to remain the same even if the clients closes his browser? ...

Log classic ASP form posts

I have an old classic ASP site I'm maintaining and in the midst of converting to asp.net. I've one page that has external endpoints posting data to it and I'd like capture/monitor the posts that are being made to this page. Does anyone know of any tools which I can use to dump these posts either to a log file or database somewhere? I gu...

Why can I not get application object in classic ASP when I add a .NET Wildcard mapping to directory?

We're migrating a site from classic asp to .NET. In the process, I need to use .NET authentication to secure the classic asp pages. This works great with wildcard mapping...unless the classic asp pages try to use something like the Application object. I have tried adding an HTTPHandler to pass the request to the asp.dll, but to no avai...

Any good libraries for parsing JSON in Classic ASP?

I've been able to find a zillion libraries for generating JSON in Classic ASP (VBScript) but I haven't been to find ANY for parsing. I want something that I can pass a JSON string and get back a VBScript object of some sort (Array, Scripting.Dictionary, etc) Can anyone recommend a library for parsing JSON in Classic ASP? ...

ASP classic reads .NET cookie in Firefox, but not IE

Hello, Having an issue with ASP.NET, when trying to set a cookie on subdomain1.mydomain.com to be read by subdomain2.mydomain.com. "subdomain1" is an ASP.NET application running on IIS 6. "subdomain2" is an ASP Classic application running on IIS6. What I don't understand is that when I test my .NET page (below) in Firefox, it works. ...