asp-classic

Is there a small classic ASP server like ASP.NET Development server that comes with Visual Studio?

I would like to hear if there is a small classic ASP server, similar to the ASP.NET Development server that comes with Visual Studio? We are a small group that supports a legacy (classic) ASP site, and would therefore like to have a small server that easily can be executed on a Windows XP machine. Currently we're stuck with IIS 5.1 on o...

using system.web.authorization settings in web.config to protect classic asp files?

I've got a virtual directory with a vast subfolder hierarchy and thousands of classic ASP files, all of which have varying permissions set at the NT folder level (don't ask.. shakes head). Is there any way to setup all these virtual directories with their own web.config so i can control access via configuring system.web.authorization p...

Page Load - Force Refresh in classic asp?

Hey, Topic says it. Short version: I need a way to force a refresh of the page on First page-load only. Would be easy in asp.net, but I've no idea how to go about this in classic asp. Longer version: I'm trying to update a rather large application, and one of its problems is that when you log in, it doesn't yet store the necessary info...

Intermittent "Division by zero" error in classic ASP pages. HELP!

This is a strange one. A web application which runs fine on Windows Server 2000, experiences intermittent errors on Windows Server 2003 R2. By intermittent, I mean myself and 2 testers can find the error within 5 minutes of navigating around the web application. The error is always "Division by zero" - 800a000b The most common line of ...

ASP, Server.CreateObject, MTS and C# object pooling -- a reuse problem?

I'm trying to debug an "occasional" problem. We've got a classic ASP application that needs to send email. For whatever reasons it's using a C# object exposed via COM to do this send; the c# object is a simple wrapper around MailMessage and SMTPClient, using SendAsync to do the send. On the ASP side the object is Server.CreateObject()'d ...

How to declare ASP classic constants to a data type?

In asp classic and vbscript, you can declare a Const with a hexidecial value, and a date type value: Const C_LIGHTCYAN = &hCCFFEE Const C_STARTDATE = #1 JAN 2000# But how can I declare currency, single or doubles data types? Const C_LONG = 1024 '# I want this to be a LONG, not an INT! I'm sure I've seen something like Const C_LN...

Password protect files on IIS without using NTFS file permission

We host online reports that a client will log into and view. The reports are ASP pages pulling the necessary numbers from a SQL Server database. The client's access details are managed by a table in the SQL Server too. In the past we've had one or more PDF or other files that the client might also want to access from the online report. ...

Migration disaster from classic asp to .net

Does anyone have experience with companies that have migrated from classic Asp to .Net badly? In this company, the "folder" icon that represents a Solution and the "folder" icon that represents a Project and the "folder" icon that represents a file directory are all the same thing. The .Net IDE is just a better notepad. The entire com...

Using of asp page with Master Page

Can we use asp page with master page in asp.net ...

How do I programatically 301 redirect in an asp page?

I'm upgrading some classic asp pages to .net, but not all of them. Rather than go and modify all the links in this backwards system, which pulls some of its links from a cms data store. I would like to take advantage of http and just remove the code our of that file, and perform a programatic 301 so that all the other pages can just be u...

How do I serve a downloadable file online without exposing the physical path?

I'm serving up documents that require the user to register before download. Currently, once you register and login, the links to the documents are displayed as: myurl.com/docs/mypdf.pdf So the physical path to the document is exposed to anyone logged in. What is the best practice for keeping the physical path to the document hidden so...

When using Excel's "Print Titles" how do i change the titles midway down the sheet

I have a classic ASP web app that outputs reports to Excel, but it's really just html. Some reports output with multiple groups and each group can span multiple pages (vertically). I'm aware of the "Page Titles" ability of Excel to print a specified row (or rows) on every page, however, I need the title of each group to also display in...

ASP Access Database web site on Windows 2008 Server running IIS 7

Hello, I am upgrading my server to Windows 2008 Server from IIS 6 running Windows 2003. I am not sure what permissions and what account is needed to access the Access database. In Windows 2003 I had given Write permission to the IUSR account, what it the equivalent in Windows 2008? The database is not in the web site folder. I am ge...

how to use asp pages in asp.net

hi everyone... I want to use asp page in my asp.net application without any modification in asp pages. further I want to add master page in my .net application.So i need the changes to be reflected in the asp page also. is it possible....any how? or any alternative to use this..? pls suhggest me .....thanx in advance... ...

Detect Server.Transfer in Classic ASP

In Classic ASP, how do you detect on that the page got control via a Server.Transfer()? I cannot compare the URL vs the current ASP filename because the code is stored in a library (included). ...

Watin - Handling Confirm Dialogs with ConfirmDialogHandler

Hi, Using Watin, I'm trying to handle a confirm dialog box and tell watin to press "OK". This is reasoanbly well documented on the internet - you use a ConfirmDialogHandler and the "UseDialogOnce" method.. Except it isn't working for me. I get the following error: WatiN.Core.Exceptions.WatiNException: Dialog not available within 5 seco...

Classic ASP - Request object Is Empty

I'm working on adding a feature to an old classic asp site and ran into an interesting problem. The following line on the page results in the helpful error "Object required:'' " strServerName = Request.ServerVariables("server_name") When I attached a debugger to look at it, Request is in fact Empty, which I don't understand how that...

VBScript VarType function gives weird value

I've encountered a strange problem with getting data from a Database and casting it to the correct type using VBScript for ASP. I have a recordset retrieved using the following function: Public Function vfuncGetRS(strQuery) 'Returns a disconnected paging capable recordset 'Note - Non Windows servers don't support disconnected r...

Get virtual path for a full path in asp classic

How can I get the virtual path for a full path in ASP classic. Note that the full path may be under a virtual directory and therefore the simplistic virtPath = Replace(fullPath, Server.MapPath("/"), "") method will not work. Edit: To clarify, an example follows Full Windows File Path (known): \\MyServer\MyShare\Web\Site\Logs\Test...

IIS6 caches a renamed folder - can this be flushed/reset?

On a Windows2003 server I have two folders: Forum Forum_dev The Forum folder is live and actively used. The dev folder contains a number of changed ASP files. Renaming Forum to something else and changing Forum_dev to Forum seems to ignore the changed files. Is there a way to force IIS to clear its cache? I think I can go through th...