asp-classic

Setting detailed/customer error messages issues, iis7 asp classic

本秂侑毒 提交于 2019-12-31 05:41:19
问题 I haven't been able to find a similar problem anywhere. Basically when I set the site to custom errors it displays the default 500 error message, however when I then set it to show detailed errors the page loads fine without error. Has anyone else come across this? How can I see what the error is? 回答1: IN IIS Open the IIS7 manager Select the Website and on its features view, double click on “Error Pages”. Right click and select the “Edit Feature Settings…” or select the same from the Actions

send javascript variable to classic asp

假如想象 提交于 2019-12-31 05:15:11
问题 I have a jQuery-powered cost calculator, and I want to allow the webpage to send a summary of the calculator's values in an email. The server runs on classic ASP. How do I retrieve javascript variables with ASP? I understand that the ASP code runs before the page loads, and the javascript code runs only after the page is loaded, since the javascript is not runat="server". How can I store javascript variables so that I can retrieve them with ASP code on a processing page? calculator with

Running 'SET' command in SQL, prior to SELECT

北城余情 提交于 2019-12-31 04:23:04
问题 Following this question, I need to add something like SET LANGUAGE German; before my SELECT query. I am running the query in an ASP/VBScript web environment, which basically limits me, as far as I know, to a single query at a time. If I run a query such as - SET LANGUAGE German; SELECT..... I get a no results message, because the 'data' returned is from the SET query and not the SELECT that follows it. Is there anything that can be done to run the SET and the SELECT together in the ASP

Architecture mismatch between 32-bit and 64-bit ODBC drivers

给你一囗甜甜゛ 提交于 2019-12-31 04:04:17
问题 I've read most of the discussion surrounding 32-bit/64-bit ODBC driver and application mismatches. I have implemented the suggestions in articles pertaining to the error message in my question, and still have not found success. I recently converted from Windows XP to Windows 8.1, and am trying to reestablish the database connections that I had in XP. I was using localhost with Active Server Pages (classic ASP) serving up data from a local MS Access database via a system DSN - everything was

How to properly create a pdf with fpdf?

不羁岁月 提交于 2019-12-31 02:49:12
问题 I have some code to try to create a single PDF document but i can't do it. code : <%@ language="vbscript"%> <!--#include file="fpdf.asp"--> <% if Request.form("test") <> "" Then Set pdf=CreateJsObject("FPDF") pdf.CreatePDF() pdf.SetPath("fpdf/") pdf.SetFont "Arial","",16 pdf.Open() pdf.AddPage() pdf.Cell 40,10,"Hello Word!" pdf.Close() pdf.Output("list.pdf","T") End If %> So, (dont mind with the request.form for execute..lol) when i click the button i get : "FPDF error: Unable to create

Error Handling in Classic Asp without timeout error

安稳与你 提交于 2019-12-31 02:36:09
问题 In classic asp page, i need to catch the error description and insert into a table in the database. when i use 'on error resume next', i am getting a timeout error as follows: The maximum amount of time for a script to execute was exceeded. You can change this limit by specifying a new value for the property Server.ScriptTimeout or by changing the value in the IIS administration tools Please help me to catch the exception and insert into database. 回答1: I believe your question is "How do I

VS2008 Debug ASP and ASP.net together

孤街醉人 提交于 2019-12-31 02:09:10
问题 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 way around by debugging the ASP (and not the ASP.net) To do ASP: Attach to process w3wp.exe from within Visual Studio (as the site is hosted on IIS7 on my

consuming SOAP web services in classic ASP

血红的双手。 提交于 2019-12-31 00:57:24
问题 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" SOAPRequest = _ "<?xml version=""1.0"" encoding=""utf-8""?>" &_ "<soap12:Envelope xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org

Problems with Recordset Filter

做~自己de王妃 提交于 2019-12-30 16:21:11
问题 I'm having trouble with a filter on an ADO Recordset in legacy ASP Classic code, and I'm trying to understand if what I'm trying to do is not supported, or if I'm just doing it wrong. I have a recordset of Items, and they have a Status of 1 (active) or 0 (inactive), and an optional End_Date. In my administrative user interface, I have a control to show all items or only those that should be displayed to end-users: Status = 1 AND ( End_Date is null OR End_Date > Date() ) To implement that

Problems with Recordset Filter

≡放荡痞女 提交于 2019-12-30 16:21:10
问题 I'm having trouble with a filter on an ADO Recordset in legacy ASP Classic code, and I'm trying to understand if what I'm trying to do is not supported, or if I'm just doing it wrong. I have a recordset of Items, and they have a Status of 1 (active) or 0 (inactive), and an optional End_Date. In my administrative user interface, I have a control to show all items or only those that should be displayed to end-users: Status = 1 AND ( End_Date is null OR End_Date > Date() ) To implement that