asp-classic

javascript: history.go(1) required to preserve ASP sessions?

I've inherited a Classic ASP app, and the former author claims that: BODY onload="javascript: history.go(1);" is required to keep the site from "losing sessions" Has anyone heard of this quirk? I can't fathom it. ...

Design Classic ASP applications to detect session expiration dynamically

I've got a Classic ASP application that relies on session; if the user leaves a screen idle and then runs a form post or other operation, I'd like to know whether the session has expired. Currently I'm checking session in each page to see if it's timed out, but is there a better, dynamic, JavaScripty approach that will do what banks do ...

How to deal with link redirects when migrating from classic ASP to ASP.NET?

I have a large-ish web project which is migrating from classic ASP to ASP.NET (about time), and would like to redirect requests from the old addresses, such as: /some/path/old-page.asp?foo=bar to the new addresses: /other/path/new-page.aspx?qaz=bak For a fairly long time, there will be classic ASP pages running in parallel wi...

Anti XSS and Classic ASP.

Im currently trying to secure my classic ASP application from XSS. I came across the AntiXSS from MS on the net and i was wondering if this would work with a classic application? If not do you have any ideas how i could go about sanatizing the strings? Any help at all would be brilliant. Thanks ...

Expressions Web 2 - rewriting code

One of our designers is looking at Microsoft Expressions Web, mainly to evaluate it against Dreameaver for maintaining the web based interfaces to our projects, and we've found a behaviour that we can't explain and can't believe is correct - it seems to be altering code in some cases. A small example that shows the issue is: <framese...

Automated testing for Classic ASP

Does anyone do automated QA testing for a Classic ASP site? I started looking at WatIn and MBUnit but not sure of the best way to structer the tests. ...

step through debugging for classic asp with VS2008

Hello, I am coming from the django world to maintain a fairly complicated classic asp site. Unfortunately the site is riddled with uncommented, copy/pasted, spaghetti code spread out over several hundred files hidden away in a few dozen directories. To be curt, it's a bit of a nightmare ;) Anyway, I am most familiar with eclipse, and ...

How can I tell if a page is SSL in ASP?

How do I tell if a page is SSL'd in "classic" ASP? Can't use javascript because what I'm outputting is the results of a "noscript" tag. :D Can't be changed or modified in IIS - has to be in the script file itself. e.g. https://foobar/something.asp --> should say YES http://foobar/something.asp --> should say NO ...

JScript 'import' syntax for ASP classic

I'm using an ASP "classic" server, with JavaScript as the language engine, specified by the directive: <%@LANGUAGE='JAVASCRIPT'%> I've noticed that `import' seems to be a keyword. Technical Information (for support personnel) * Error Type: Microsoft JScript compilation (0x800A03F2) Expected identifier /Default....

How do I reference the PDF IFilter (dll) interface built into Windows to extract text and properties (author, title, etc.) of a pdf document via Classic ASP

I need to extract and parse Text from a pdf file in a classic ASP environment. I read another post about using the PDF iFilter driver installed with Adobe Acrobat 9 which can be referenced through COM. Is this even possible? If so how do I get started? Thanks ...

Consuming webservice in classic ASP -- not working

Following code is not working for me. What could be a reason? <html> <head> <title></title> </head> <body> <% Dim SoapRequest Set SoapRequest = CreateObject("MSXML2.XMLHTTP") Dim myXML, webServiceUrl Set myXML = CreateObject("MSXML.DOMDocument") myXML.Async=False webServiceUrl = "http://cpp.cisco.com/cpp/CPPLDAP/CPPLDAP.asmx/Authen...

Retrofitting record-level access restrictions in classic asp applications

Like the title says, I've been asked to come up with an estimate for retrofitting an existing asp application. The current security mechanism controls access to different parts of the application (page-level restrictions), but has no mechanism for flagging individual records as restricted. Assigning rights to a user (using the existing...

Why is it that my VBS script file doesn't work when copied to my ASP page?

OK.. I am not really good at asking questions, but the title says it all. I got my script querying Active Directory to work when called from the command windows, but it won't work on my ASP page. Instead of echo("message") in the VBS file, I used Response.Redirect(message) in my ASP. So here's the code that is working fine in the CMD wi...

Consume webservice in classic ASP.

Following code does not work for me on Win Server 2003 machine but works on XP. I have installed SOAP Toolkit 3.0 installed on server. What could be a reason? <% Dim oSOAP Dim objDOMDoc Dim objResponse Set oSOAP = Server.CreateObject("MSSOAP.SoapClient30") oSOAP.ClientProperty("ServerHTTPRequest") = ...

wrap 32 bit dll for 64 bit operating system to work with regsvr32.exe

We are currently transferring our websites from Windows 2003 (32-bit) to Windows 2008 (64-bit) and have hit a problem. One of our website use the payment gateway HSBC CPI which requires a DLL to be registered(regsvr32.exe), this DLL is then used inside a classic asp website. The problem is the DLL is a 32-bit DLL and so it will not reg...

How to make a parametrized SQL Query on Classic ASP?

Can someone show me the simplest way of perform a parametrized SQL query using Classic ASP in VBscript? A compilable example would be best. ...

How can I find why some classic asp pages randomly take a real long time to execute ?

I'm working on a rather large classic asp / SQL Server application. A new version was rolled out a few months ago with a lot of new features, and I must have a very nasty bug somewhere : some very basic pages randomly take a very long time to execute. A few clues : It isn't the database : when I run the query profiler, it doesn't det...

What are options for VB-ASP applications for consuming .NET web services?

I have a traditional ASP application which is expected to consume a .net web service. What support does ASP provide for such a scenario? I rememeber VB script supporting a transaction attribute at the start of the page. Can i use the transaction to include the web service call as well? Any pointers would be appreciated. thanks Parito...

Handling hashed passwords stored as varbinary in SQL Server and classic ASP

All, Sorry in advance - I'm a novice in most of the topics below (SQL, ASP). Anyway... I've got a pretty simple web app that requires users to log in with a user name and password. The front end creates a salted SHA1 hash of the password, and posts it (along with the user's name) to an ASP page. That ASP page takes the data, calls a...

Check for Nothing in vbscript/classic asp

I need to update an old classic asp, and I have to call a function that normally returns an array, but under certain circumstances might return either Nothing or an undefined value. How can I check that the result actually returns an array? ...