asp

asp: open "save-as" dialog for PDF (using asppdf + xmlhttp)

hi, i'm using asp + asppdf (a component for creating pdf files). asppdf has a method called SaveHTTP which causes the browser to open the "save-as" dialog for saving the pdf. so the component is sending the pdf as binary data to the browser. my question: i'd like to load the pdf via xmlhttp + then open that dialog. loading works (i'm ...

Problem when try to add image to a pdf

I am generating pdf using java and itext. When I add image that we used before in previous version of the pdf everything is fine. But when I replace it with the new one(they are both png-s) it corrupts the PDF(my PDF reader return "not a pdf or corrupted). Are there any special things that must be set when saving the image? It gives me t...

PHP, cUrl and ASP

I'm tryng to get data using PHP's cUrl extension. The page runs ASP. I do two cUrl requests, the first one to get Models, and the second one to get the Model Age. I don't know why, but __EVENTVALIDATION is the same in both requests. I'm posting the following data: Array ( [ScriptManager1] => UdtMarca|ddlMarca [ddlAnoValor] => 0 ...

MSXML dll error - The message received was unexpected or badly formatted.

I get the following error when I try to use MSXML2.ServerXMLHTTP object to send xml via post Error number - 2146893018 Error Source - msxml3.dll Error description - The message received was unexpected or badly formatted. The recent windows update seem to have updated the dll and that seem to cause the problem(it was working...

XSLT : Cannot convert the operand to 'Result tree fragment'.

Hello, I work on an xslt stylesheet, and I should receive as parameter two additional XML. I get an error when I use the node-set() method (from namespace ms, microsoft). The contents of the XML is correct. The parameters are send with classic ASP. Here's the header and the call in xslt: <?xml version="1.0" encoding="utf-8"?> <xsl:styl...

MySQL ODBC error "server has gone away"

Occasionally we're seeing an error from ASP pages: Microsoft OLE DB Provider for ODBC Drivers error '80004005' [MySQL][MyODBC 5.00.11][MySQL] 2006 MySQL server has gone away We're handling it the best way we can in ASP but it still crops up. I think it's more to do with the MySQL ODBC driver than the ASP code. We never see this with ...

File export not working in Update Panel

Hello Everyone I am trying to export a file upon button click event. The structure of my app is like this. UpdatePanel TabContainer Tab1 UserControl (Button is in UserControl) Tab1 TabContainer I tried setting PostbackTrigger but it says control not found exception. Thanks in Advance ...

This type of page is not served when accessing an asp page in debug mode in Visual Studio 2008

I am trying to debug an old project in Visual Studio 2008. When I go to an asp page I get the following. Server Error in '/website' Application. This type of page is not served. Description: The type of page you have requested is not served because it has been explicitly forbidden. The extension '.asp' may be incorrect. Please revi...

Classic asp (vb6) application crashes with 100% CPU usage

I'm having trouble with an old legacy app that recently started crashing. I'm trying to investigate the DebugDiag analysis, but don't have much luck. Either there is a sql query that locks and somehow the calling thread doesn't die away? Then again callstack points to oledb32!CImpIErrorInfo::GetHelpFile+a1. Here's the info from DebugDia...

cdoSendUsingPort gives 8004020f but cdoSendUsingPickup works

I am using cdo to send email the following code fails Set cdoConfig = CreateObject("CDO.Configuration") With cdoConfig.Fields .Item(cdoSendUsingMethod) = cdoSendUsingPort .Item(cdoSMTPServer) = "localhost" .Update End With When I send an email I get the following error 8004020f I then changed the code to the following...

Displaying feed from remote url - please help!!

I've been searching for a day now - so any help at all would be so greatly appreciated! I have a URL for a feed in xml format - it doesn't have an xml extension, so after some searching I found this code example to extract the information from the feed and create my own locally saved xml file: <?xml version="1.0" ?> <?xml-stylesheet hr...

How to return a database connection from a function?

I need to modify some legacy code that was written in classic ASP (VBscript). I have a line that sets a database connection like this: set m_conn=OpenConn() I believe that the OpenConn() function is in a DLL somewhere. This is bad news because we can't locate the source for that dll. So, I've been working on a replacement for that fu...

VBScript not exiting out of 'Do-While' loop?

Hi, alL! Since VBScript has notoriously bad built-in error handling, I've tried getting around that by wrapping my main blocks in a Do While Err.Number = 0 loop. Theoretically, this should work: if a script has On Error Resume Next statement enabled, the script will bypass the built-in error handler in WSH (i.e. stop it completely) whil...

Retrieve the asplabel data and include the same in an url

Dear All, Pls help me to sort this issue. I need in display dynamic data in a Chart (Google Charts) I have these datas in an asplabels, I need those datas to be inserted in the Charts url dynamically. Assume the label ids are as follows: I need to use those label values to the following url http://chart.apis.google.com/chart?chf=...

Text management in a web application

Hy, I developing ASP.Net for some years now and every time (very often) I code a new asp.net application I need to make sure that all the texts (labels, buttons, … ) I use in the Application must be managed and updated by an admin. Therefor I implemented a own simple component, which updates the data to a Strings table in the application...

IIS 7.0 lost form request data on refresh

Hello, I have a ASP page that passes a hidden input field value to another ASP page, but on refreshing the page the form value is empty. I am using IIS 7.0 , do i have to configure the IIS server to remember the form request value on refresh. ...

JQuery UI Dialog don't reload after first open

I've this script inside my classic asp. <script type="text/javascript"> var $dialog = $('<div></div>'); $dialog.load('cad_usr_pto_padrao_livres.asp?cd_usuario=' + <%= "'" & v_cd_usuario_cl & "'" %>); $dialog.dialog({ title: 'Cadastro de Ponto Padrão', height: 300, width: 400, closeOnEscape: true, hide: 'slide', position...

Drop down calender control

how The asp.net calendar control is displayed in a popup window and the selected date will be displayed inside a Textbox control. ...

HTML Select returning user-visable text not value field

I am having an issue with a SELECT tag in an HTML form on an ASP page. This will have varying numbers of options under it, and is generated dynamically from a database. Code below; <select name='select1' id='select1' size='10'> <option value="12345678901234567890">User-Friendly Text 1</option> ... <option value="100000393737...

Gridview column that changes when required (ASP.NET)

Hi all, I need to have a GridView listing all invoices of an account. Each account can have a PDF generated for that account, which isn't done instantly - so I need a gridview column to update the user of the progress of this conversion - i.e. 'In Progress'. Then, when the conversion is done the cell's text should change to a hyperlink...