asp

How to invoke Java methods through COM

I have a classic ASP/VBScript application that needs to call methods in a Java class. I discovered two products that apparently can do this: Java2COM and Java COM Bridge. Can you recommend one from experience, or is there yet another mechanism by which we can do this which is better? I'd rather avoid having to write C++ code if possible,...

jquery Flot from a database in classic ASP

I have downloaded the Flot library and have been having a play around. I understand how the Flot library works and how to draw simple graphs. The bit I am struggling with is pulling data from a DB and passing that into a Flot Graph so that the graph then becomes dynamic depending on the data retrieved. I believe you can pass data from...

jQuery effects disappear after ASP postback in Firefox

I have a ASP updatepanel, within that panel I have some controls which got jQuery effects connected to them. The effects work perfect before posback, after postback the effects only work in IE not in FF. To get it working in IE I added the following to my MasterPage: function pageLoad(sender, args) { // Initialize jQuery effects. }...

Getting empty recordset for a particular column during code run

Hi, I am using an Inline SQL statement Select * from table where column='' in classic asp application. This is a dynamic sql. Based on the return values in the recordset I am displaying some fields like checkboxes and text boxes. But this is working only if I put a breakpoint in specific / anywhere in the code file. while the code is ru...

comma delimit javascript/asp line

Hi, What is the correct way to comma delimit this line, I keep getting javascript errors: <a href="javascript:doSubmit(<%= pound & rs("AdvertiserID")%>, <%=rs("AdvertiserName")%>)"> Its Friday, what can I say... The <%=rs("AdvertiserName")%>) can have single quotes in it, such as Dillard's and needs to be delimited, how would I add ...

How check current date is greater than end date ?

hi, In my asp page, i write code like this for checking date validation <% 'Session 1 session.lcid=2057 Session("CheckIn")= "26/12/2009" d=0 response.write session("CheckIn")&"----"&DateAdd("d",d,Session("CheckIn")) &"<br/>" if session("CheckIn")= DateAdd("d",d,Session("CheckIn")) then response.write "Session 1 is workings" end if 'S...

Visual Studio 2008 hangs when running Azure projects

My ASP MVC Web project runs and debugs without any issues in VS2008SP1 (.NET 3.5 SP1). However when I run the Azure project that refers to the same Web project as a Web Role, although it runs without issues, I can't go back to Visual Studio when I'm done. It seems as if VS is waiting for a modal form to close (I get the "bing" sound in...

Unexpected reinitialization of variables declared in VB6 DLL module

I have a VB6 DLL embedded in some ASP pages. The DLL hits a Codebase database, an obsure and obsolete database engine (a dialect/variation on dBase) that virtually no-one has even heard of. It takes Codebase nearly a second to initialise a new connection, which is unacceptably slow and so I've created a connection pool, managed by a VB c...

ASP: Converting PDF to a collection of images on the server using GhostScript

Hello everybody, These are the steps I am trying to achieve: 1) Upload a PDF document on the server. 2) Convert the PDF document to a set of images using GhostScript (every page is converted to an image). 3) Send the collection of images back to the client. So far, I am interested in #2. First, I downloaded both gswin32c.exe and g...

How sort xml by distinct data using classic asp?

hi this is my xml <XMLResponse> <Product> <Items> <ID>AA</ID> </Items> <Items> <ID>BB</ID> </Items> <Items> <ID>CC</ID> </Items> <Items> <ID>AA</ID> </Items> <Items> <ID>AA</ID> </Items> <Items> <ID>BB</ID> </Items> </Product> </XMLResponse> this is the code i using in my classic asp <% Response.ContentType = "text/plain; charset=UT...

Using duplicate asp.net control IDs in different conditional blocks / validators

Hi, I have an asp page that renders controls based on a Request parameter. Simplified example: <% if (Request.QueryString["personType"] == "D") { %> <asp:TextBox ID="TextBoxName" runat="server" Text='<%# Bind("first_name") %>' /> <asp:TextBox ID="TextBoxSurname" runat="server" Text='<%# Bind("surname") %>' /> <% } else { %> ...

Multiple Language Support for Classic-Asp

Hi, I want to translate my web page to 7 different languages and I'm curious about what is the best way to handle this? I know this subject opened multiple times but I didn't get a reasonable answer. Actually, all the topics are about php and gettext but I use classic asp (vbscript). The method I'm using now is that; I have en.asp an...

Building connection pool for a custom database in classic ASP

In my real application, I have a VB6 DLL which is called from classic ASP pages. The application calls a non-standard database. I want to have a connection pool class which will stay alive permenantly. I set the compilation flags to keep the DLL in memory but despite that, the pool is periodically destroyed. I’ve already tried changin...

Run a server-side exe from ASP (beginner)

I have what should be a simple thing but my unfamiliarity with .NET and web programs is hindering me. I'm a straight up old-school C programmer who has been programming ASP and ASP.NET lately for an ecommerce site. I have an ASP program that synchronizes 2 databases. I also have a VB.NET program compiled down to an EXE that fills the ...

ADO Recordset Decimal value issue

I have code similar to Dim A, B, C Set rs = Server.CreateObject("ADODB.Recordset") strSql = "Exec [dbo].[some_sp] IND" rs.open strSql,CN,3,3 Do While Not rs.EOF 'these columns are returned as decimal(10,2) format A = rs("col1") B = rs("col2") rs.MoveNext Loop C = A + B 'i get type mismatch error here And I used response.write to c...

Setting cookie by calling webpage by Microsoft.XMLHTTP

Hi, The situation: I have 2 webpages with 2 domains (backoffice.myurl.com & www.myurl.com). The backoffice is written in classic asp, the frontend in asp.net 3.5 (vb.net) When I hit a button in the backoffice, I want to set a cookie on the frontend. I do this by calling a page on the frontend via Microsoft.XMLHTTP Dim GetConnection S...

How to debug asp in VS 2008 SP1

Hi everyone, as the title says my question would be how to debug old asp code in VS2008 SP1? thanks in advance ...

Address space of DLLs called from classic ASP

My application consists of a VB6 DLL that is called from ASP. It needs to manage a pool of connections to a (non-standard) database. I implemented this by using a global variable, but this is being reset every 20 minutes due to an ASP setting causing the application to crash. A previous poster said that DLLs in ASP are all created in th...

Difference between asp and asp.net

What is the difference between asp and asp.net? ...

document.cookie has not all cookies

From XHR, I had one "Set-Cookie: .ASPXAUTH". It was really installed, as I saw that next XHR, had this cookie inside in request part. The strange is why document.cookie doesnot contain it? ...