asp-classic

Traverse XML document using asp

北战南征 提交于 2020-01-05 07:50:12
问题 I'm trying to find if a certain element is present in a XML file and if it is, remove it. However I keep getting this error: Description: Type mismatch: 'NodeList' My code looks like this: <%@ Language=VbScript%> <% Dim address Set xmlDoc = CreateObject("Microsoft.XMLDOM") xmlDoc.async = False xmlDoc.load (Server.MapPath("XML/sensor.xml")) Set Root = XMLDoc.documentElement Set NodeList = Root.getElementsByTagName("sensor") For Each i In NodeList if ((NodeList(i).getElementsByTagName("Address"

Classic ASP and SQL Server Express 2005

◇◆丶佛笑我妖孽 提交于 2020-01-05 07:40:21
问题 Below is my simple asp code that I am using to insert some data to the SQL Server database. It gives the below error. Could someone please have a look and let me know the error with this code? <html> <head> <title>Address Book Insertion</title> </head> <body> <% set connection=Server.CreateObject("ADODB.Connection") connection.Open "Provider=SQLOLEDB;Server=charithj-pc;Integrated Security=SSPI;Initial Catalog=AddressDB;" cmd = "INSERT INTO AddressBook (FirstName, Surname, Address) VALUES ('"

IIS ASP Caching

a 夏天 提交于 2020-01-05 01:37:32
问题 I'm trying to configure ASP caching in IIS, following the instructions of a software I purchased. This is supposed to make it run faster. http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/a5766228-828e-4e31-a92b-51da7d24d569.mspx?mfr=true The software instructions point to that article. The problem i'm having is that the " ASP File Cache section" that's mentioned there does not exist in my IIS dialog... Am I missing something? Is there any configuration that'll make

SQL Server 2012 classic asp connection string

自闭症网瘾萝莉.ら 提交于 2020-01-04 14:04:00
问题 I have a SQL Server 2012 Express installation with a new DB called BRD that I have created. I have also created a test table ( tempDemo ), and a test stored procedure ( getStList ) in the BRD database. The stored procedure works when I run it in the query window so I believe the table and stored procedure are legit. The SQL Server is set to "SQL Server and Windows Authentication mode". I then attempted to create a Classic ASP page that then connected to the SQL Server using the following

Operation must use an updateable query ASP Query Failing

落爺英雄遲暮 提交于 2020-01-04 13:39:14
问题 Below is the error code I am receiving after running an Update query 2015-02-18 17:30:12 192.168.2.240 GET /webinsert.asp Date=02/10/2015&Field=38|443|80004005|Operation_must_use_an_updateable_query. 80 - Mozilla/5.0+(Windows+NT+6.3;+WOW64;+Trident/7.0;+rv:11.0)+like+Gecko - 500 0 0 56 I recently moved the database from one server to another. I can read the data no problem. It has proper IIS User rights (read and write). Any help would be greatly appreciated. 回答1: Make sure your IIS user has

Operation must use an updateable query ASP Query Failing

放肆的年华 提交于 2020-01-04 13:37:17
问题 Below is the error code I am receiving after running an Update query 2015-02-18 17:30:12 192.168.2.240 GET /webinsert.asp Date=02/10/2015&Field=38|443|80004005|Operation_must_use_an_updateable_query. 80 - Mozilla/5.0+(Windows+NT+6.3;+WOW64;+Trident/7.0;+rv:11.0)+like+Gecko - 500 0 0 56 I recently moved the database from one server to another. I can read the data no problem. It has proper IIS User rights (read and write). Any help would be greatly appreciated. 回答1: Make sure your IIS user has

Classic ASP Request.Form removes spaces?

孤街醉人 提交于 2020-01-04 11:08:46
问题 I'm trying to figure this oddity out... in classic ASP i seem to be losing spaces in Request.Form values... ie, Request.Form("json") is {"project":{"...","administrator":"AlexGorbatchev", "anonymousViewUrl":null,"assets":[],"availableFrom":"6/10/20104:15PM"... However, CStr(Request.Form) is json={"project":{"__type":"...":"Alex Gorbatchev", "anonymousViewUrl":null,"assets":[],"availableFrom":"6/10/2010 4:15 PM"... Here's the entire code :) <%@ language="VBSCRIPT"%> <% Response.Write(CStr

Properly closing a database connection - VBScript + MS SQL

自作多情 提交于 2020-01-04 07:27:07
问题 I have a classic ASP (vbscript) web app that connect to an SQL server. On certain pages, I open multiple DB connections to pull data. My question is: Is it better to add a close connection function at the bottom of each page or to explicitly close the connection right after using it? Keep in mind, on these certain pages, I reopen a DB connection everytime I get data; I do not reuse the connection. IE: Set DBread = Server.CreateObject("ADODB.Connection") DBread.Mode = adModeRead DBread.Open

Working with big files in classic ASP

一世执手 提交于 2020-01-04 06:34:57
问题 I was wondering what's the best practise for serving a generated big file in classic asp. We have an application with "export to excel" function that produces 10MB files. The excels are created by just calling a .asp page that has the Response.ContentType set to excel and has an HTML table for the data. This gives as problem that it takes 4 minutes before the user sees the "Save as..." dialog. My current solution is to call an .asp page that creates the excel on the server with AJAX and lets

how to increase request accept limit for asp classic

雨燕双飞 提交于 2020-01-04 04:38:31
问题 from java applet I am sending post request to asp classic. I am sending a very large data in this request ,which is csv data, when number of character in this request increases and get more then 138000 then asp does not accept the request and java applet give 500 error, so can anybody tell me how can I increase the size limit of accept request of asp classic. 回答1: Hard to say without knowing your server version. If IIS6 you would change the AspMaxRequestEntityAllowed property in the metabase