asp-classic

Error reported on a blank line

喜欢而已 提交于 2019-12-25 06:40:54
问题 I am truly stumped this afternoon and have done quite a bit of searching to no avail. I am getting the error "Object doesn't support this property or method /admin/Upload1_20120508JB.asp, line 91" From the following code: 90 wf = fso2.CreateTextFile(sWriteFilePath) 91 92 If fso1.FileExists(sReadFilePath) Then ... Line 91 is blank and Line 90 works as expected, the file gets created in the proper location. Has anyone seen anything like this before? If so, what was the solution? Thanks! 回答1:

ASP Stored Procedure Operation is not allowed when the object is closed

强颜欢笑 提交于 2019-12-25 05:31:45
问题 I have a problem accessing a Stored Procedure via ASP from an SQL Database. This is my code for the recordset: Dim com_AntwoordenPerVraag__mem_id com_AntwoordenPerVraag__mem_id = "0" If Session("MM_MemberID") <> "" Then com_AntwoordenPerVraag__mem_id = Session("MM_MemberID") End If Dim com_AntwoordenPerVraag__cat_id com_AntwoordenPerVraag__cat_id = "0" If Request.QueryString("cat_id") <> "" Then com_AntwoordenPerVraag__cat_id = Request.QueryString("cat_id") End If set com_AntwoordenPerVraag =

Classic ASP - How to preserve commas while parsing a CSV file

孤人 提交于 2019-12-25 05:29:32
问题 The Scenario 4 columns, ID, ParentID, Category, OrderNo and Category can have commas in it e.g "Sales, Manager" or "HR, Recruitment" so I would have to handle that without being able to know that the words have quotes around them as the files they use don't so I would need to handle rows with odd number of commas and then treat those rows as ones with categories with commas inside so it's a little more complicated. 回答1: I'd personally use the Microsoft Text Driver to parse CSV files, makes

Error in downloaded pdf file - ASP classic

依然范特西╮ 提交于 2019-12-25 05:24:08
问题 I'm creating a download manager, and everything seems to work. But the file that I get downloaded can not be opened. The file has the correct name and the extension .pdf - but my Mac says that the file cannot be opened (the file on the server works). if request.querystring("downloadFile") <> "" then strFilePath = Server.MapPath("/_customerFiles/"& session("URLmapping") &"/documents/"& request.querystring("downloadFile")) Set objFSO = Server.CreateObject("Scripting.FileSystemObject") If objFSO

ASP Classic & SQL date out-of-range error

瘦欲@ 提交于 2019-12-25 05:22:40
问题 I am moving an ASP classic app to a new server. I did not developed the app and I have no experience with ASP, hope someone can guide me. One of the pages in the app drop this error: Microsoft OLE DB Provider for ODBC Drivers error '80040e07' [Microsoft][ODBC SQL Server Driver][SQL Server]The conversion of a varchar data type to a datetime data type resulted in an out-of-range value. /clientname/Admin/EntregasProcess.asp, line 49 I read that maybe could be the date format so I change it to

ASP Classic & SQL date out-of-range error

。_饼干妹妹 提交于 2019-12-25 05:22:18
问题 I am moving an ASP classic app to a new server. I did not developed the app and I have no experience with ASP, hope someone can guide me. One of the pages in the app drop this error: Microsoft OLE DB Provider for ODBC Drivers error '80040e07' [Microsoft][ODBC SQL Server Driver][SQL Server]The conversion of a varchar data type to a datetime data type resulted in an out-of-range value. /clientname/Admin/EntregasProcess.asp, line 49 I read that maybe could be the date format so I change it to

how to debug asp classic code in MX dreamweaver

被刻印的时光 ゝ 提交于 2019-12-25 05:06:39
问题 can Any body tell me how to debug asp-classic code in Macromedia Dreamweaver, like we can debug code in visual studio because visual studio provide built in debugger. So is there any method by which we can debug asp-classic code in Macromedia Dreamweaver. 回答1: There is no way to debug code in Dreamweaver MX. Dreamweaver CS5 provides automatic syntax checking of code, though. 回答2: I debug code in Dreamweaver by manually printing variables as html comments. 来源: https://stackoverflow.com

Populate fields in webpage based on option selected from a drop down list using Classic ASP

…衆ロ難τιáo~ 提交于 2019-12-25 04:57:21
问题 I have a page that has a drop down combo box, the values for which are coming from a database. next to the combo box are two text boxes. now based on the option selected from the drop down list, I need to go to the DB and get relevant data from the db and populate the two text boxes. There are other fields in the page that are straight forward, but i don't know how to go about with this situation. any link/sample code/reading material / or any other form of help will be greatly appreciated.

ASP session variable lost

拈花ヽ惹草 提交于 2019-12-25 04:55:23
问题 On PageA.asp I set a session variable like so Session("affiliate") = "xyz.com" When I click a link and go to PageB.asp that session variable no longer exists. I have other session variables and they persist across the pages. I can response.write my session varriable on PageA.asp, so I know it gets created properly. I had this problem a few months back. I figured it out then, sometime between now and then my fix got overwritten. Now, I'm at a total loss. Thanks in advance. 回答1: You're probably

Declaring XML output parameters with ADODB in ASP Classic

﹥>﹥吖頭↗ 提交于 2019-12-25 04:51:57
问题 I'm working with an ASP Classic legacy code base attempting to call an existing SQL Server stored procedure that declares output parameters with an XML data type. However, every time I try to execute the stored proc I get this error: 0x80040e14 - Microsoft OLE DB Provider for ODBC Drivers: [Microsoft][ODBC SQL Server Driver][SQL Server]Implicit conversion from data type xml to varchar is not allowed. Use the CONVERT function to run this query. I've experimented with a list of ADODB types,