asp-classic

Visual Studio 2008 sp1 classic asp Intellisense and Outlining not functioning

As the topic suggests I've got VS 2008 with sp1 installed and am not receiving full Intellisense or ANY outlining capabilities when editing classic asp pages. My coworker is also using VS2008sp1 and has outlining working correctly (but he has no idea why) I've made a screen, you can find here Classic asp outlining issue screen shot 1 H...

Scalability issues when we are calling web services written in .NET using asp/vbscript

We are currently calling web services on our application server through our web server using asp/vbscript. This works very well during low load. However during high load it can sometimes take up to 25 seconds to execute a query like below: Public Function GetValidLogon(storeKey, username) Dim req Set req = CreateObject("Microsoft.XMLH...

Uploading photos - How can I keep our website safe/stable

My website would like users to upload their photos...but how do I keep our server safe from harm? Allowing only JPGs should avoid virus trouble, but what if someone selects a 10Gb file - will that slow the whole website down? We're using Classic ASP and IIS6 (sorry, but that's how it is, can't change that!). Previously we have used a DL...

One large include file or several smaller ones?

I am writing some jsp and I am wondering if it would be better to have one large include file that I would include with every page or several smaller ones that I would include only on certain pages as needed. Any given page will only need to call a few methods at most ( < 5). If I use one file, it would be 2500+ lines of code. My mai...

No clue.. Overflow, Microsoft VBScript runtime error '800a0006'

I'm receiving suddenly this error on a Win2003 Server Web Application: Microsoft VBScript runtime error '800a0006' Overflow: 'Appname' A bunch of updates where performed on this server but I have rolled them back all. The page is old ASP code and if i run file monitor utility it will show the BUFFER OVERFLOW when it hits a GIF. Any...

How can I stop Chrome from adding extra line breaks in my textarea?

I have a form in asp that does some javascript error checking them shows a preview of the form information before the user submits it to our database. To enable light formatting before submission we replace all of the line breaks with tags. <textarea name="DATA_Description" ROWS=30 wrap=on cols="30"><%=DATA_Description%></textarea> R...

Where can I manage Server Objects?

How do I link an odbc object to a stored procedure I have written. Please see example below: The following code executes a stored procedure called DEPT_Add, yet the name of the object function is AddDepartment. Set oDept = Server.CreateObject("JTQTMS.JTDept") bReturn = oDept.AddDepartment(CStr(sDeptName)) My question is if I add a...

Generate pdf in the background.

I have a classic asp page which generates a PDF serves it to the browser. What I would like to do is have a loading page which loads the PDF in the background before serving it to the browser when this is complete, essentially adding a nice page indicating to the user that something is happening. I have looked at things like the Yahoo p...

Asp Classic Include Once

Does ASP Classic have a feature that is the equivalent of PHP's "include once" feature? ...

vb script problems within asp

I'm trying to get this code working within an asp page. when the user clicks an OnClick button, it will take them to this page which will create a file to store that user's username and the time they executed the code. So far, when this code runs, it will create the "userinfo.flag" file but it does not capture the user's data. Basically,...

IIS mod/extension to support eXtended Server-Side Includes (XSSI)?

I've been working with a designer that wants ot bring some content developed on Apache to IIS. The content however makes use of XSSI. I have not been able to find out if IIS can support such things. Perhaps its named something else on Windows/IIS? A sample of this is shown below: <!--#config timefmt="%Y%m%d" --> <!--#if expr="$DATE_LO...

May i config healthMonitoring for classic asp in ii7?

I see that for showing error of classic asp in ii7 i must use web.config with configurations for asp.net like this: <system.webServer> <httpErrors errorMode="Detailed" /> <asp scriptErrorSentToBrowser="true" /> </system.webServer> BUT: may i use healthMonitoring in classic asp for getting e...

Is there an OR/M for Classic ASP?

Is there an OR/M (object relational mapper) that can be used in Classic ASP? Even a simplified class object would be a great help in handling simple CRUD tasks. Yes I know ASP.NET has many and I use a few of them for ASP.NET sites. However this is a legacy e-commerce site that uses ASP/VBScript and a total rewrite it not a possibility. ...

Accessing Employee ID via LDAP in a Classic ASP/VBScript application

I've got an older ASP/VBScript app that I'm maintaining/upgrading and its currently using the older/depreciated means of gathering profile information - like below: strNTUser = Request.ServerVariables("AUTH_USER") strNTUser = replace(strNTUser, "\", "/") Set strNTUserInfo = GetObject("WinNT://"+strNTUser) 'You get the idea' When all I...

What's the best way to consume webservices in Classic ASP?

We have a three-tier architecture consisting of Classic ASP Frontend, VB COM+ Objects and MSSql Database. We are going to replace the VB COM by ASP.NET Webservice layer soon but we are not in the position to replace the Classic ASP with new .NET code (yet) and we're therefore going to need a way to consume webservices in Classic ASP... ...

Is there a way to have intellisense working for classic-asp custom classes in VS 2008 ?

First, this has never worked before, so it is not specifically related to VS 2008. The problem : when you have custom asp classes in separate files that you include in a "main" asp script, you won't get intellisense in Visual Studio. Example : CUser.asp <% Class CUser Public Sub Create() Public Sub Remove() End Class %> Main....

Using MVC for new parts of a Webforms project

I really like the MVC "way" and have actually enjoyed learning ASP.NET MVC (I never liked ASP.NET Webforms but I didn't know why until now). The problem is I'm about to inherit a bunch of Webforms code and wondered if I'll be able to add new things to the codebase with MVC instead off using Webforms. I suppose it depends a lot on how a...

aspcompat performance issue

I am using aspcompat page attribute in ASP.NET so the com components I call can get at ASP intrinsic objects (Request, Response, Application, etc) I have quickly created a new test project, one asp.net page and a vb6 com component. The page does this: for (int i = 0; i < 1000; i++) Application["string" + i] = i.ToString(); Debug....

Does asp.net setting affect classic asp (IIS 6 settings)

My company has some classic asp sites and developing new sites in asp.net, and everytime we create a new site in IIS 6 all the sites go down for a couple of seconds. So I'm thinking of changing the default value of the ASP.NET version to 2.x since that is what we're developing and I'm wondinger if these settings somehow affect the classi...

ASP FileSystemObject collection cannot be accessed by index

Am I going mad? I cannot find a way to get hold of the first file in a folder with the FileSystemObject (classic ASP). With most collections you'd think the index 0 or 1 might work, but IIS says "Invalid procedure call or argument". Neither of these last 2 lines work: Set oFileScripting = CreateObject("Scripting.FileSystemObject") Set ...