asp-classic

Output ADODB.RecordSet as JSON

梦想与她 提交于 2019-12-24 03:01:24
问题 I'm trying to change my application so that it outputs JSON instead of HTML when it makes an AJAX request for some data. I have an ADODB RecordSet. I need to loop through it row-by-row and add/change/remove different values. Then I need to take all the modified rows and response.write them as JSON. I'm using JSON2.asp so my application already supports JSON.parse & JSON.stringify but I can't get it to spit out the multi-dimensional array as JSON. set rs = conn.execute(strQuery) if Not rs.EOF

Using Attachment field with Classic ASP

前提是你 提交于 2019-12-24 02:56:39
问题 I am trying to use attachment datatype in Microsoft access and classical asp to access the database. I am trying to insert attachement from a classical asp form. I got an error "Cannot insert multiple values". I tried a lot online but i cannot find a best fit solution for this. Thanks for help in advance. 回答1: AFAIK, support for the new ACCDB attachment field type has not been included in the ADO object model. You will need to find a different method to interact with your Access database. I

Java SWT browser: Waiting till dynamic page is fully loaded

血红的双手。 提交于 2019-12-24 02:44:04
问题 I'm working with SWT browser class and I have a problem. I'm trying to copy page source from a page in which most of the data is dynamically loaded with use of ASP. The problem is that the event completed of browser event listener is of course fired before the whole page content is displayed. Here is a part of my code: class GermaniaProgressListener implements ProgressListener { final Browser browser; Calendar calen; SimpleDateFormat dateFormat; static Integer counter; static Integer

How to stop server-generated Word .DOCs from saving with “_files” folders?

耗尽温柔 提交于 2019-12-24 02:43:37
问题 I have a Word .DOCument that's being generated by a (classic ASP) server. It's an HTML file that's being output as a .DOC using the application/msword content type. The document is generated fine, saves fine, opens up fine in Word, and is fully editable... The problem occurs on the next document save in Word. A folder is created in the document's directory with the name "<filename> _files " -- just as if you were saving a web page in IE. Inside this folder are three files: colorschememapping

Best way to use a dll from an ASP script

痴心易碎 提交于 2019-12-24 02:43:16
问题 I'm writing some ASP code to service requests from a simple HTML form on my company's intranet. The code needs to call methods from a (COM) dll. I'm using the code: myObject = Server.CreateObject("myDLL.myClass") but it's giving an error at this line. I'm not sure if the dll is registered on the server, but I suspect it may not be. I'm not sure how to find this out. If it's not registered, is it possible/best practice to: Use the dll without registering it on the server (I have the .dll file)

How to stop server-generated Word .DOCs from saving with “_files” folders?

橙三吉。 提交于 2019-12-24 02:43:08
问题 I have a Word .DOCument that's being generated by a (classic ASP) server. It's an HTML file that's being output as a .DOC using the application/msword content type. The document is generated fine, saves fine, opens up fine in Word, and is fully editable... The problem occurs on the next document save in Word. A folder is created in the document's directory with the name "<filename> _files " -- just as if you were saving a web page in IE. Inside this folder are three files: colorschememapping

ELMAH errors and Classic Asp

十年热恋 提交于 2019-12-24 02:30:56
问题 We're already using ELMAH for error logging on an ASP.NET MVC website that we have ... but our main website is still classic asp and I've begun creating an error handling/ logging structure for that website, but I thought it would be great if we could keep the error logging consistent across all our applications. I'd like to use the same database structure ... perhaps even store the errors from different source applications in the same table and then filter by source. I thought maybe that I

How can I send an e-mail from a vbs script

妖精的绣舞 提交于 2019-12-24 02:16:45
问题 How can I send an e-mail from a vbs script - on a machine that cannot connect to the internet (it's in my non-internet zone). I've hacked the following together from my googling, but is seems to require a call to Microsoft's server. What about the situation where I'm not able to reach microsoft.com? sch = "http://schemas.microsoft.com/cdo/configuration/" Set cdoConfig = CreateObject("CDO.Configuration") With cdoConfig.Fields .Item(sch & "sendusing") = 2 ''cdoSendUsingPort .Item(sch &

equivalent of file_get_contents(“php://input”); in classic asp

筅森魡賤 提交于 2019-12-24 01:44:14
问题 Is this it? I am trying to convert, $data = file_get_contents("php://input"); to classic asp... Set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP.6.0") xmlhttp.open "GET", php://input, false xmlhttp.setRequestHeader "Content-type", "application/x-www-form-urlencoded" xmlhttp.send TOKEN = xmlhttp.responseText edit: Answering John's question... Realtime Updates Following a successful subscription, Facebook will proceed to call your endpoint every time that there are changes (to the chosen fields

How could ASP server-side code corrupt a smart quote ’?

▼魔方 西西 提交于 2019-12-24 01:33:29
问题 My company just converted many columns from varchar to nvarchar. Now it seems that when we render a smart quote (i.e. ALT+0146 ’) to the screen and then send it back to the SQL Server 2000 database for persistence, the smart quote gets corrupted to - ’ -. My Question: How could ASP server-side code corrupt a smart quote ’ ? EDIT: It appears that my question is similar to this one. Incidentally, Powerpoint content introduced the smart quote into the mix. However as I said before, I'm dealing