asp-classic

Migrating ASP web site into Sharepoint 2007

I need to migrate a ASP legacy web application into MOSS 2007. Is there any tool that can be used for migration? if so please specify? ...

Invalid procedure call or argument in vbscript

I am using vb script to upload a file to the server. The problem I'm having is that when I set the file to ASCII format like this... Set oFile = oFS.CreateTextFile(sPath & FileName, True, False) I get an error when the sub is called that says Invalid procedure call or argument but if I set the file to unicode Set oFile = oFS.C...

VS2008 Debug ASP and ASP.net together

Is there any way to debug both classic ASP and ASP.net applications from visual studio to allow me to breakpoint on an ASP line of code and an ASP.net one too? This is for a legacy system which has older classic asp components and newer ASP.net modules I have it working by debugging the ASP.net on its own (and not the ASP) or the other...

ADODB.Stream alternative for large images

Need to find an alternative to using ADODB.Stream as it will load the entire file into memory and with file sizes over 200MB and simultaneous downloads can easily run out of memory. The only thing I can find to do would be to either rewrite in ASP.Net or write our own COM component that wouldn't load the entire file into memory. ...

Any other preprocessor directives in VBScript/Classic ASP?

The only pre-process directive that I know about in VBScript / Classic ASP is the #include. I don't know if that is the official name but I'm basically looking for code that can execute code or other instructions before the general VBScript. Are there any other such directives in VBScript? Such as #If or something? I'd like to be abl...

Classic .ASP and .NET .aspx web pages in one ASP.NET Web app

We have an old web app written in classic ASP. We don't have the resources to rewrite the app. I know that asp and aspx pages can coexist in the same ASP.NET web app, but it appears as those you cannot share Application and probably Session variables across these two groups of page extension types. I was hoping to do new development in...

Classic ASP adodb connection error on Vista

Hi, When my classic asp page gets to this line of code Dim cnn As ADODB.Connection it throws an error http 500. I suppose ado is not correctly installed Any ideas? ...

Can you give me Indexing Service example?

I have got an application in Asp using Indexing service. I am new to this. Can any body send an example with explanation? ...

consuming SOAP web services in classic ASP

I have a problem with this is code: Set oXmlHTTP = CreateObject("Microsoft.XMLHTTP") oXmlHTTP.Open "POST", "http://www.oursite.com/WebServices/ourService.asmx?WSDL", False oXmlHTTP.setRequestHeader "Content-Type", "application/soap+xml; charset=utf-8" oXmlHTTP.setRequestHeader "SOAPAction", "http://ourNameSpace/ourFunction" SOAPRequ...

Send HTML email asp

I want to add some html in an email. I've tried the following. vFromName = "someone" vFromAddress = "someemail" vTo = "recipient" vSubject="someSubject" vBodyofemail = "<html><table><tr><td><b>SomeText</b></td></tr></table></html>" Call SendMail() sub SendMail() 'change to address of your own SMTP server strHost = "mail.internal.r...

Change Response type in asp

Hello, I've used xml type by writing (asp coding) Response.ContentType = "text/xml" Now xml contents are over and I'd like to add html content so I wrote Response.ContentType = "text/html" But it still writing in xml what would be the problem here? ...

Why do I get an ADO connection error while using classic ASP?

Hi guys, I am getting an error when running this classic asp script: Dim DB_CONNECTIONSTRING, rs, iRecordCount, strSQL DB_CONNECTIONSTRING = "Provider=SQLOLEDB;Data Source=localhost;Initial Catalog=employee;Trusted_Connection=yes;" strSQL = "SELECT * FROM EmployeeProfiles" Set rs = Server.CreateObject("ADODB.Recordset") rs.Open strSQL,...

off-the-shelf control for text entry/commenting in asp classic and asp.net

I've got an application that allows multiple teachers to comment on a single student's writing and would like a rich web control that allows those comments to work like Word. That is, I'd like for teachers to be able to enter comments on particular passages and have those comments show, with the teacher name, when the student reads the e...

ASP: convert milliseconds to date

I need to convert a field with milliseconds created by PHP app to a date value. Is there a way to do this using vbcript? or convert to datetime in SQL 2005 Example: 1113192000 to mm/dd/yyyy hh:mm:ss Thanks, Sam ...

IIS self referencing URL construction?

I'm building a REST system under IIS/ASP which provides general record listings. But I also want to insert into these general listings a URI which allows the client to retrieve each specific record's details. I've come up with the following JScript to build an URI leader which I can then tack on record specific addressing: <% @LANGUAGE=...

ADO error "Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype."

I am doing some calculation with the data set I take from my database. Null values give errors so I tried replacing null values with zeros(0). Here is the error I get, ADODB.Recordset error '800a0cb3' Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype. Neve...

tracking online visitors

I want to list the IP addresses and last surfing url of my visitors. The following code I coded works all fine expect one thing. It does not list the last url address but all of them. Example: 71.187.189.67|7/6/2009 9:59:25 PM|/html/default.aspProcess=HomeNewSeason&IMAGECONTENT=bg_home_newtaste.gifMore... 71.187.189.67|7/6/2009 9:59:24 ...

Is it possible to do friendly url (url rewriting) in classic asp?

I know how to create/implement friendly url in asp.net, but is it possible (and if so - how) to do it in classic asp? if its impossible, how would google respond (SEO) to creating pages whos sole purpose is to redirect (on load) to a different page? thanks! ...

Singleton Pattern in VBScript (Classic) ASP

I've just created a Classic ASP version of the FirePHP server side library, that works with the regular old FirePHP console. see the Github project However in my implementation, i have to create a global to store the class instance. I have no idea how to, if it is even possible to create static methods, and thus use the singleton patt...

ASP Classic Named Paramater in Paramaterized Query: Must declare the scalar variable

Hi all. I'm trying to write a parameterized query in ASP Classic, and it's starting to feel like i'm beating my head against a wall. I'm getting the following error: Must declare the scalar variable "@something". I would swear that is what the hello line does, but maybe i'm missing something... <% OPTION EXPLICIT %> <!-- #includ...