asp-classic

Classic ASP page automatically sets Quriks mode as default in IE 8

时间秒杀一切 提交于 2019-12-11 02:08:22
问题 While viewing the HTML IE 8 sets the default document mode as IE8 Standards as it should but it enters quirks mode on an asp page. Even if I use <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> it doesn't really help. What should I do? 回答1: First thing I would do would be place identical output in a HTM file and visit that instead. If you get different results then there really is something wierd going on because I doubt IE8 has any way to

How to check if variable in array in vbscript

帅比萌擦擦* 提交于 2019-12-11 02:05:04
问题 I'm refactoring my code and trying to cut down on repetition. I've got this working code <% If tree <> "" or (info <> "" and info <> "links" and info <> "privacy" and info <> "talks") Then %> write stuff <% End If %> I put the info variables into an array Dim info(3) info(0) = "Talks" info(1) = "Privacy" info(2) = "Links" I'm unclear as to iterate through the array <% If tree <> "" or (info <> "" and **info <> arrayInfo** Then %> write stuff <% End If %> Little help. Thanks. 回答1: You need a

Classic ASP sql server “operation is not allowed” error

。_饼干妹妹 提交于 2019-12-11 02:02:29
问题 I'm getting error: Request object error 'ASP 0104 : 80004005' Operation not Allowed /post.asp, line 3 This error came after attempting to write to my database. The code I added was jquery stuff{ ar2 = useless2.split("Summary"); ar = ar2[0]; re = new RegExp("\n", "g"); useless = ar.replace(re, "<br>"); re = new RegExp('"', "g"); useless = ar.replace(re, '""'); used = useless; } html stuff{ <input type="hidden" name="vDescription_' + c + '" value="' + used + '"> } (Yes I know used=useless is

msxml3.dll error '80072f0c' A certificate is required to complete client authentication

感情迁移 提交于 2019-12-11 01:58:54
问题 I've installed the paypal api certificate and given private key access to the proper identities using winhttpcertcfg. I've exhausted all of the "known fixes" found on various forums and continue to get this error. I'm running the lastest msxml versions. Using the paypal code example I get the error msxml3.dll error '80072f0c' A certificate is required to complete client authentication The error is constant whether using 3.0, 4.0 or 6.0 versions of MSXML2.ServerXMLHTTP, and I receive the same

How to convert Windows-1255 To UTF-8 in Classic ASP?

与世无争的帅哥 提交于 2019-12-11 01:55:59
问题 How can I convert a windows-1255 string to utf-8 in classic ASP? My database is windows-1255 and I want to transfer my site to utf-8. 回答1: Does the code in this answer do what you need? 回答2: Are you sure you need to do any conversion. Whilst your database may store the string in a particular encoding, ordinarily ADODB/OLEDB will deliver the string to VBScript/JScript running in a ASP page as unicode (since actually the script languages only support unicode its actually possible to have any

Classic asp - 64 bit MDAC reference problem

久未见 提交于 2019-12-11 01:51:42
问题 I got an very basic test.asp page that needs to run on a 64-bit server first i tried <!--METADATA TYPE="TypeLib" NAME="Microsoft ActiveX Data Objects 2.5 Library" UUID="{00000205-0000-0010-8000-00AA006D2EA4}" VERSION="2.5"--> <% .... more code does not work (even though i found the reference in COM) the i try <!--METADATA TYPE="TypeLib" NAME="Microsoft ActiveX Data Objects 2.8 Library" UUID="{2A75196C-D9EB-4129-B803-931327F72D5C}" VERSION="2.8"--> <% ... more code this works ,, but why can't

server-side javascript - classic asp

情到浓时终转凉″ 提交于 2019-12-11 01:42:15
问题 In client-side javascript the "this" operator is the window object. What is the "this" operator in classic asp server-side javascript? In the following code, what is “this” referencing when run in classic ASP server-side ? test(); function test() { Response.Write(typeof(this)); } 回答1: The this object seems to receive special treatment in the global scope of a server-side asp page. In my tests, you can append this. to global objects like Response (as Shadow Wizard suspected): this.Response

Could not find installable ISAM

℡╲_俬逩灬. 提交于 2019-12-11 01:00:42
问题 I want to create a search function in my webpage with first <form id="form1" name="form1" method="get" action="mySearchResults.asp"> <label>Enter Keywords:` <input type="text" name="searchTerm" />` </label>` <p> <input type="submit" name="Submit" value="Submit" /> </p> </form> Then <% 'open the connection Dim Connect, myRecordSet Set Connect = Server.CreateObject("ADODB.Connection") Connect.Open = "Provider=Microsoft.Jet.OLEDB.4.0;Database='SVCS.mdb'" %> <% 'collect the form input searchInput

How to prevent Internet Explorer Connection Timeout?

无人久伴 提交于 2019-12-11 00:55:45
问题 If a website is taking more than 10 seconds to process and load of a page, Internet Explorer will do a connection timeout . It is possible for the user to prevent this by setting the default value in the registry to a higher value. But I really can't tell any of my clients to do this; so how do I prevent this to happen in the first place? I have always learned not to use a buffer and flush it, cause this will make the calculation of the data slower. Another problem with this, is that all the

Calling a VBScript subroutine/function using html onclick, ASP

二次信任 提交于 2019-12-11 00:35:57
问题 <%@ language = "VBScript"%> <!DOCTYPE html> <html> <body> <form method="post" action = ""> <input type = "submit" onclick = "check()" value = "Submit"/> </form> <% sub check() Response.write("TEST") end sub %> </body> </html> When I click on the submit button, this doesn't print "TEST" for some reason. 回答1: Classic ASP runs on the server . Click events happen on the client . There is no persistent connection between the two. Web programming is not the same as desktop app programming. At a