asp-classic

Error trying to call stored procedure with prepared statement

扶醉桌前 提交于 2019-12-17 10:14:08
问题 I'm trying to use a prepared statement to call a stored procedure (using ADODB with classic ASP), but when I set CommandType I get the following error: ADODB.Command error '800a0bb9' Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another. I have the following code: With Server.CreateObject("ADODB.Command") .ActiveConnection = db 'this is initialized prior .CommandType = adCmdStoredProc .CommandText = "procName" End With The prepared statement name is

HTTP GET Request, ASP - I'm lost!

送分小仙女□ 提交于 2019-12-17 09:58:01
问题 Using VBScript with ASP I am trying to set up an HTTP GET Request which will visit a page which in turn generates a line of ASCII (non-HTML). I then want to extrapolate that ASCII line which will have 4 values delimited by semicolons back into 4 variables in my original ASP page so that I can take those values and do something with them. This is the page I want to access with HTTP GET Request http://www.certigo.com/demo/request.asp. Three of the values are null here. I don't know much

Sharing cookies across different domains and different applications (classic ASP and ASP.NET)

本小妞迷上赌 提交于 2019-12-17 09:57:38
问题 Is there a way to share cookies across different domains and different applications (classic ASP and ASP.NET) 回答1: No, there isn't. The issue is the cross domain one, rather than the asp.net/classic asp and is security reasons. If the domains are subdomains you can share the cookies, provided you use a cookie path that both can access (ie. for the domain sub.example.com you can read and write cookies using the example.com domain). 回答2: You can share cookies via some behind the scenes

Sharing cookies across different domains and different applications (classic ASP and ASP.NET)

泄露秘密 提交于 2019-12-17 09:57:23
问题 Is there a way to share cookies across different domains and different applications (classic ASP and ASP.NET) 回答1: No, there isn't. The issue is the cross domain one, rather than the asp.net/classic asp and is security reasons. If the domains are subdomains you can share the cookies, provided you use a cookie path that both can access (ie. for the domain sub.example.com you can read and write cookies using the example.com domain). 回答2: You can share cookies via some behind the scenes

File URL “Not allowed to load local resource” in the Internet Browser

情到浓时终转凉″ 提交于 2019-12-17 09:43:42
问题 I've got a major brainteaser. I want to open a file in classic ASP. I'm using various variables because things can change but the outcome is correct. I know this because I've tested the outcome by copying the linkadress and placing it in my URL. Now the problem: If I click my link it doesn't do anything. Not a refresh, not a redirect. nothing. Does anyone know what I did wrong? Ok here's the deal. My file isn't always local, it depends on what environment I'm on. If I copy-paste the outcome

Calling REST web services from a classic asp page

依然范特西╮ 提交于 2019-12-17 08:32:29
问题 I'd like to start moving our application business layers into a collection of REST web services. However, most of our Intranet has been built using Classic ASP and most of the developers where I work keep programming in Classic ASP. Ideally, then, for them to benefit from the advantages of a unique set of web APIs, it would have to be called from Classic ASP pages. I haven't the slightest idea how to do that. 回答1: You could use a combination of JQuery with JSON calls to consume REST services

How do you debug classic ASP?

回眸只為那壹抹淺笑 提交于 2019-12-17 03:35:38
问题 I have to debug a classic asp site being served by IIS 7 (windows 2008). How can I do this? I have only worked with ASP.NET. 回答1: From an MSDN blog post: http://blogs.msdn.com/mikhailarkhipov/archive/2005/06/24/432308.aspx Here is how to make ASP debugging work: Enable ASP debugging on the server. (I also added DEBUG verb to the asp extension, but I am not sure if it is required). Open classic ASP in VS 2005. Set breakpoint. View page in browser or run without debugging. Debug | Attach to

Using Stored Procedure in Classical ASP .. execute and get results

偶尔善良 提交于 2019-12-17 03:19:16
问题 I tried to solve this all day long but it doesn't seem to work for me. I would like to execute a command and get the result back to a recordset. The problem is one of two things: either I'm getting an empty response or there is a problem with my code. I know for sure that this command should fetch few lines from the DB. I added response.write inside the loop, but they are never printed. Here is the code: Set conn = Server.CreateObject("ADODB.Connection") conn.open "PROVIDER=SQLOLEDB;DATA

Classic ASP on IIS7: refusing to send errors to browser on 500 Internal Server Error

感情迁移 提交于 2019-12-17 02:37:37
问题 I have classic ASP running on IIS 7. Even though I configured the ASP "Debugging Properties" to "Send Errors to Browser = True", the web app REFUSES to send errors to the browser and continues to send a 500 internal server error. My browser has "Show Friendly HTTP Error Messages" unchecked. Failed Request Tracing is installed (not sure if that's related) Happens both on web pages loaded locally on the server and remotely The App Pool is integrated (not sure if that matters) Any ideas? 回答1:

Firefox Links to local or network pages do not work

倖福魔咒の 提交于 2019-12-17 02:22:53
问题 I have a .asp application where image files (.PDF) are stored in a directory (fed by a copier/scanner). The created file names are stored in a database table. When a query is launched from the web page a link to the file is created. When clicked the image should be displayed. This functionality works 100% in Internet Explorer. No such luck in Firefox (and I have some Firefox users). The created hyperlink looks like this file://Server/Scanner/XYZ.pdf The Firefox helps suggest the reason is