asp-classic

vbscript syntax in asp classic

眉间皱痕 提交于 2019-12-24 00:55:35
问题 I have a vbscript that I want to run in the <head> of an asp. I am having trouble getting the script to run so I'm thinking I need some help making sure the asp knows that it's vvbscript or something. The last script is the one I am having trouble running. here is what I have: <%@ Language=VBScript %> <% ***vbscript*** %> <HTML> <HEAD> <link rel="stylesheet" href="MD_intstyle.css" type="text/css"> <SCRIPT Language="JavaScript"> ***javascript*** </script> <script language="vbscript"> **

Server.Transfer from ASP to ASP.Net

删除回忆录丶 提交于 2019-12-24 00:43:20
问题 Here's my scenario: A desktop application posts to a specific ASP page in my web application with XML data. The web application is being re-written to ASP.Net; however, the Url for that specific page can not change (due to the desktop application). My original idea was to simply 'forward' the requests from the classic ASP page to a new ASPX page, which would handle the request, by changing the ASP page like so: <% Server.Transfer("MyApp/NewXmlHandler.aspx") %> However, this doesn't work:

Implementing ISupportErrorInfo on a C# object exposed to COM

醉酒当歌 提交于 2019-12-24 00:34:00
问题 I'm writing a COM object in C# and I'd like to raise errors to vba/asp client software using the mechanism it understands - the Err object. In good ol' days that would have meant implementing ISupportErrorInfo on the COM object but I can't find any information about how to implement that interface in a C# object. Can anybody help? thanks! 回答1: You should be able to simulate this by throwing a custom exception from the Managed code. All CCW's automatically implement ISupportErrorInfo

Classic ASP/OraOLEDB - how to define OUT param containing TABLE?

和自甴很熟 提交于 2019-12-24 00:32:06
问题 A classic ASP script migrated from msdaora to OraOLEDB will no long execute an Oracle SP it used to. The SP looks like this : TYPE tbl_CONSOLIDATED_ID IS TABLE OF VARCHAR2(32) INDEX BY BINARY_INTEGER; TYPE tblSAM_DD_TEXT IS TABLE OF VARCHAR2(50) INDEX BY BINARY_INTEGER; TYPE tblSAM_TYPE IS TABLE OF NUMBER INDEX BY BINARY_INTEGER; -- PROCEDURE Get_Associated_Samples( EMPID_IN IN MAS_EMPLOYEE.EMP_AUTOID%TYPE, ID_OUT OUT tbl_CONSOLIDATED_ID, SAMDDTEXT_OUT OUT tblSAM_DD_TEXT, SAMTYPE_OUT OUT

Classic ASP always return code 200 in IIS7

陌路散爱 提交于 2019-12-23 23:17:35
问题 I enabled tracing in IIS7. I set those properties to true in the ASP tab of the IIS management tool: appAllowClientDebug, appAllowDebugging, errorsToNTLog, scriptErrorSentToBrowser; To test it, I wrote a small classic ASP test page in wich I voluntary include a bug (bad activeX name). My asp test page is rendered until the bug line is reached. The rest of the page is not rendered. I was expecting a 500 error code, but code is always 200. There is no error file in the FailedReqLogFiles folder.

Capture and insert Unicode text (Cyrillic) into MS access database

戏子无情 提交于 2019-12-23 21:48:27
问题 I inherited an old web application, that is writing data collected in a form into an Access 2007 database using classic ASP. Now they need it to be able to collect input in the Cyrillic alphabet. I'm completely unfamiliar with code page/ char sets, and working with non latin alphabets. I've tried altering the charset on the entry form page to ISO-8859-1 , which does seem to store the ascii value of the characters (eg: #1076;). So that is interpreted and read by the browser fine, but is pretty

Variable Number of Input Fields in Classic-ASP form

橙三吉。 提交于 2019-12-23 21:36:04
问题 I have a check out form where number of products can be "n". So how i can know how many input fields are in the form and take input from it? Thanks 回答1: If it's a group of single controls - say a variable number of checkboxes representing items - the solution is pretty straightforward. For your checkboxes: <input type="checkbox" name="ProductID" value="1" />Product #1<br /> <input type="checkbox" name="ProductID" value="2" />Product #2<br /> <input type="checkbox" name="ProductID" value="3" /

Can't write file in classic asp

拈花ヽ惹草 提交于 2019-12-23 20:37:17
问题 Ok, it's been a while since I've worked with classic asp so I'm a bit rusty. Here's my question. I'm trying to write a file to the file system using FSO. The code below is very simple. However, the file is not appearing and no errors are appearing. I know it's running the code because I can add response.writes before and after this snippet and they both appear in the output. However, no file is created, no error is thrown. I've even changed it so it's a bogus path to force an error. No dice.

Why is the classic ASP server-side include enclosed in a comment?

大憨熊 提交于 2019-12-23 20:15:31
问题 Why is the syntax for server-side inclusion <!--#include file="suchandsuch"--> ? Placing semantically meaningful content inside a comment seems awkward and misleading – indeed, the first time I saw this syntax, I assumed it was an include that had been "commented out". What was the reasoning behind designing the language to use this syntax, as opposed to alternatives like <% #include file="suchandsuch" %> ? (I'm aware that parsing that example alternative with simple substitution would render

IE8 Form Not Submitting (Intermittent)

醉酒当歌 提交于 2019-12-23 20:13:15
问题 I have a complex classic ASP system that has worked well for years but has recently started having a strange and intermittent problem. On some forms, folks will report that they click "Submit" but that the form just resets itself (or, perhaps, the browser just reloads the form - my users are probably not able to tell the difference). Most recently, this has happened to a user with IE8 (we do use ). It seems to happen only with larger forms (ie. more data submitted). We do use an empty action