asp-classic

How to use itextsharp in my classic asp??

In my ASP web application, i need to convert my report as a PDF file. In my previous ASP.net application i have done it by using "itextsharp". Can anyone guide me how to use itextsharp to my Classic ASP application? ...

how can i see asp code(text in color) in Visual studio2008

I have an asp page and want to see it in VS2008 with color like html code. what setting should i change to allow asp page to be viewed correctely? ...

Access denied error with MSXML2.ServerXMLHTTP

I'm receiving an intermittent "msxml3.dll error '80070005' Access is denied." error. The object always posts back to the same domain. I don't quite know why it works sometimes and why it fails other times. This is Classic ASP - VBScript set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP") xmlhttp.open "POST", "http://xxxx.com/GetCache...

Can I post values to classic ASP page when debugging?

Hello.. I have a classic ASP page that requires two values from a form. These values are posted to the ASP page from another pages form. I would like to pass these values to the ASP page without the need for a form for testing. Is this possible? This is what the asp page looks like: <%@LANGUAGE="JavaScript"%> <% var someID = new Strin...

Need help with checking for an image and if not found display a diff image

Im using fpdf to output details about an employee and an image of the employee if one is found. I have it setup to get the employee id from user input then send that id to the fpdf where it pulls the employee data from the db and display it on the pdf. So far I have a few pictures and renamed them to the same id of the employee the pictu...

HTML & ASP Classic "After Load" event?

Hello, I'm using HTML & ASP Classic. Does someone knows if there is something like "After Load" event? Thanks ...

Classic ASP application experiencing SQL Server "Timeouts" and "SQL Server does not exist or access denied"

We've been seeing this problem for a while now and I'm really trying to wrap my head around what's causing it. A couple of times a day we'll see periods where web pages start throwing "[Microsoft][ODBC SQL Server Driver]Timeout expired" then shortly afterward pages start throwing "[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server ...

Split a string according to a regexp in VBScript

Hi, I would like to split a string into an array according to a regular expression similar to what can be done with preg_split in PHP or VBScript Split function but with a regex in place of delimiter. Using VBScript Regexp object, I can execute a regex but it returns the matches (so I get a collection of my splitters... that's not what...

.NET vs ASP.NET vs CLR vs ASP

Although I know the terms I used to forget the differences sometimes...So just to maintain a place for reference...Thanks all for your answers. ...

Directing a request in IIS

I have a set of web services written in classic asp. I want to convert them to asp.net, but this will be a long process. I want to convert a couple functions at a time, and use some sort of routing mechanism to select which version the requests go to (classic asp, or asp.net). Changing the url used to access the web service and functio...

Convert Classic ASP and ASP.NET Webforms to ASP.NET MVC

I currently work for a company that uses a combination of ASP.NET Webforms and legacy ASP pages for web development. This works fairly well for their current projects but I would like to convince / suggest to them to switch over to ASP.NET MVC since most of their codebase consists of wiring form elements to stored procedure parameters. J...

Strange problem with nvarchar(max) fields and Classic ASP

I'm working on a Classic ASP (VBScript) site that's running on a Windows 2008 server with IIS7 and hitting a SQL Server 2008 database and I'm seeing some strange behavior that seems to be specific to fields that are of type nvarchar(max). I have this simple bit of code that loops over some query results and tries to print out the title ...

Setting cookie expiration with ASP classic to ASP.NET session sharing solution

I'm implementing the session sharing structure from this link for an ASP classic site to begin the gradual conversion process to ASP.NET. I'm trying to extend the cookie expiration time so that users do not get signed out of the site when the session expires. At the place where the cookie is created in SessionPage.cs I've added the line ...

How can I return an array from a function in classic asp?

Tried this Function myfunction() Dim myArray(1) myArray(0) = "1" myArray(1) = "2" myfunction = myArray End Function Dim newarray = myfunction() And I get 500 error. I'm using IIS7 with .NET runtime ASP.Net 2.0/3.0/3.5 On Godaddy's free economy hosting if that helps. ...

How do I automatically compact and repair an Access 2007 database?

I have a site that uses classic ASP and a database in Access 2007 format (.accdb). It is encrypted with a password and is about 300 MiB in file size. The site works fine by itself but every now and then the database gets corrupted (the error is "unrecognized database format"). It can be fixed easily by opening the database in MS Access,...

A login token system

Hello, I am currently creating a very basic piece of DBMS software - I would however like the user not to have to type in their details every time. Instead I would like them to click on a control pannel link that would log them straight in. My solution thus far has been a token system whereby there is a table in the database with the...

ASP session variable lost

On PageA.asp I set a session variable like so Session("affiliate") = "xyz.com" When I click a link and go to PageB.asp that session variable no longer exists. I have other session variables and they persist across the pages. I can response.write my session varriable on PageA.asp, so I know it gets created properly. I had this probl...

ADO LIKE query in ASP (vbs)

I have a query like this: SELECT TaFellesVaktjournal.*, TaBygg.ByggNavn FROM TaFellesVaktjournal LEFT JOIN TaBygg ON TaFellesVaktjournal.VaktFellesByggNavnId = TaBygg.ByggBudsjtilstEiendom WHERE VaktjFellesDato >= @dtfr AND VaktjFellesDato <= @dttl AND (VaktFellesSak = @sok OR VaktjFellesHendelse = @sok) ORDER BY VaktjFellesDato DESC, V...

jQuery AJAX - Make content appear by default

I'm using jQuery AJAX to retrieve a page with different user selected options. I'd like the page to appear by default with default options so in $(document).ready I call the function which contains the AJAX. This creates a delay in loading as the browser first loads the actual page, then the jQuery javascript file and then finally it re...

running a server side exe from an asp page

i have a classic asp page that calls an exe that does some complex processes. I want the asp page to wait until the exe completes processing. I tried shell. no luck. any solution? -Vivek ...