asp-classic

Debug Classic ASP via IIS 7

回眸只為那壹抹淺笑 提交于 2020-01-04 04:29:25
问题 I'm having a problem showing detailed errors for classic ASP pages. Initially it just showed default 500 error page, we then followed the instructions here but now it only shows: An error occurred on the server when processing the URL. Please contact the system administrator. Any ideas? 回答1: Inside IIS, select ASP, and then change Send errors to browser to Yes alt text http://img198.imageshack.us/img198/6749/capturets.png 回答2: Eduardo, we did have Send Errors To Browser set to True for the

Classic ASP's Request.Form is dropping an 8-bit character — is there a simple way to prevent this?

≡放荡痞女 提交于 2020-01-04 04:21:26
问题 A client of mine is using a Classic ASP script to process a form from a third-party payment processor (this is the last step in a credit-card-transaction sequence that starts at the client's website, goes to the third-party site, and then returns to the client's site). The client is in Austria and when one of the fields includes an 8-bit character (e.g., when the field value is Österreich), the Ö is simply dropped when I retrieve the value of the field in the standard way; e.g.: fieldval =

ASP/.NET to connect MySQL Server without using ODBC or any driver?

一世执手 提交于 2020-01-04 01:26:50
问题 In Classic ASP or .NET , is there a way to connect MySQL without using, for e.g, MySQL ODBC Driver or Any Driver which needs to be installed on the Server, assuming i'm not an admin or not having any permission to install anything? 回答1: First Download the MySql.Data.MySqlClient dll from here before select Platform .net/mono from dropdown list add reference to your project. you are done. its same as System.Data.SqlClient. I hope it will help you If you need documentation Click Here 来源: https:/

Read POST data in AJAX call

白昼怎懂夜的黑 提交于 2020-01-03 21:08:27
问题 I have some Session values that I am constantly changing via Ajax calls. I can't seem to get a handle on the POST data to process it and set the values. What I am passing to it here is an array of strings like is shown in my code below. Here is where AJAX calls: var sessionValues = []; str = {"PID": "1", "Level": "Main", "MenuName": "Kitchen", "State": "CHECKED"} sessionValues.push(str); var postObj = {"sessionData": sessionValues}; $.ajax({ type: 'POST', data: {'data': postObj}, url:

How Classic ASP Session works in deeply

跟風遠走 提交于 2020-01-03 19:38:09
问题 I know that the ASP Session use some cookie identifiers. But I wan't to know how deeply it identify the browser and what browser is in the right session. The ASP Sessions keep working even if you disable browser cookies, so how it work's, and what exactly are the variables needed to ASP identify a browser in the right session, like remote IP + Cookie + some header sent by the browser to keep the identification session, please elucidate me. Some example is this question: Opening a new window

ASP “Cannot use parentheses when calling a Sub ” [duplicate]

三世轮回 提交于 2020-01-03 17:13:43
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Cannot use parentheses when calling a Sub As far as I am aware this is correct but i get the error "Cannot use parentheses when calling a Sub" Never used ASP before...can anyone shed light o nthe issue for me? code: <%TESTWeb1.RecentlyViewedDisplay("Recently Viewed Header","Recently Viewed Entry","Recently Viewed Group Entry")%> 回答1: In VB6 type languages you only need parentheses when calling a function, or

Classic ASP and COM DLL Does not work in Server 2008 R2 (Microsoft VBScript runtime error '800a01ad' ActiveX component can't create object )

久未见 提交于 2020-01-03 13:31:56
问题 I have created a dll in Visual Studios 2010. I have performed the following steps: Given build a strong name by associating a key pair (snk file) to it Given each class an individual ProgID and GUID As it is a 64 bit DLL I made sure that Used the RegAsm.exe located in the 'FrameWork64/v4xxxx' folder. I used RegAsm.exe /codebase ECE2.dll I ran 'gacutil -i' on the DLL All of these steps have been successful. The DLL and the ASP page I am using it on are stored in intetpub/wwwroot. Now, the DLL

“Build” Classic ASP with TFS 2010

為{幸葍}努か 提交于 2020-01-03 10:24:18
问题 I'm using TFS 2010 for source control and for continuous integration (among other things). I've got a Classic ASP application that I maintain that I'd like to incorporate in a continuous integration build; however, I must supply a "Item to Build" in the build definition. Since Classic ASP doesn't have a solution or project associated with it, what are some ways I can still use a TFS 2010 Team Build, without having to mess with the "Items to Build"? 回答1: I think that I determined my solution

Asynchronous HttpRequest using WinHttp.WinHttpRequest.5.1 in ASP

血红的双手。 提交于 2020-01-03 07:33:08
问题 I was trying to make LINK FINDER and facing 2 issue Issue 1 (Resolved) :: Unable to get url of redirected page This was resolved REFERNCE LINK by using WinHttp.WinHttpRequest.5.1 Issue 2 (Unsolved) :: unable to use WinHttp.WinHttpRequest.5.1 object EVENTS Or no callback to asynchronous request Synchronous request code Set req = CreateObject("WinHttp.WinHttpRequest.5.1") req.open "GET", url, FALSE req.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" req.send PostData This

ADODB.Recordset error '800a0bb9' Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another

梦想与她 提交于 2020-01-03 06:35:12
问题 I've got an old website that is using ASP Classic and I have recently been asked remove the SQL injection attack threat. I'm trying to use parameterized queries, but it's all a little above my head. here is my code: <% whatSector = request.querystring("whatSector")%> <% adoCon.Open cString dim rs_client if whatSector="" then strSQL="SELECT * FROM clients ORDER BY alphabet" else Set objCommand = Server.CreateObject("ADODB.COMMAND") strCmd1 = "SELECT * FROM clients Where industrySector=? ORDER