asp-classic

Can somebody explain how this asp code works?

蓝咒 提交于 2019-12-13 08:24:39
问题 I wanted to echo some data from a table in my database and found this code: set rs = Server.CreateObject("ADODB.recordset") rs.Open "Select name From users", conn do until rs.EOF for each x in rs.Fields Response.Write(x.value) next rs.MoveNext loop rs.close I tested it and and it worked but I have no clue what all that syntax means and there is no explanation provided with the code. Can someone with experience help me out? 回答1: rs is a recordset, which means a result of a database query. The

Simpletest browser (php) on an asp site that doesn't allow direct linking

♀尐吖头ヾ 提交于 2019-12-13 08:06:58
问题 I'm trying to use Simpletest's scriptable browser to test out forms and links on an ASP site. See this site: http://www.acgme.org/adspublic/default.asp If you click on the links (under the "search" section) in the left frame, the content in the right frame changes. If I direct link to the links on the left, I get an error. Using simpletest: <?php require_once('../simpletest/browser.php'); $browser = &new SimpleBrowser(); $browser-> useCookies(); $browser-> useFrames(); $browser->get('http:/

Microsoft Access Database Engine 2010 Redistributable 64 bit only works if Enable 32-bit set to true

流过昼夜 提交于 2019-12-13 07:39:35
问题 I have an ASP classic application that I'm migrating from a Windows 2000 to Windows 2012 Server. It uses the following code to import xls files Set objConn = Server.CreateObject("ADODB.Connection") objConn.Open "DRIVER={Microsoft Excel Driver (*.xls)}; IMEX=1; HDR=NO; Excel 8.0; DBQ=" & Server.MapPath("\Imports\") &"\"&fn& "; " and the following for csv files Set objConn = CreateObject("ADODB.Connection") Set objRS = CreateObject("ADODB.Recordset") objConn.Open "Provider=Microsoft.Jet.OLEDB.4

Embedded Windows Media Player not streaming avi file?

≡放荡痞女 提交于 2019-12-13 07:00:39
问题 Hi I have a webpage that's using classic ASP that I want to display a streaming video for the user to watch. <OBJECT id='mediaPlayer' width="480" height="428" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Microsoft® Windows® Media Player components..." type="application/x-oleobject" codebase="https://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112"> <param name="fileName" value="VehiclePreOp.avi"> <param name="autoStart" value="True">

How to access .Net dll in classic asp?

╄→尐↘猪︶ㄣ 提交于 2019-12-13 06:39:20
问题 I know this is a repeated question ,but no solution worked for me . I am having a custom .Net dll . I have to use this in both aspx and asp pages. Before accesing in asp ,i did the following things, 1.Build the dll project. 2.In VS2005 cmd prompt i ran sn -k MarkItUp.snk. 3.Referenced the key file in assembly.cs as [assembly: AssemblyKeyFileAttribute(@"C:\Projects\Xxx.xx.Utilities\bin\Debug\MarkItUp.snk")] 4.Then in VS2005 cmd prompt 1.tlbexp Xxx.xx.Utilities.dll /out:Xxx.xx.Utilities.tlb 2

Converting base64 string to byte array in classic asp

本秂侑毒 提交于 2019-12-13 06:38:37
问题 I want to convert base 64 string to byte array in classic asp . The code to decode base 64 string to byte array is as follows : Function Base64Decode(ByVal vCode) Dim oXML, oNode Set oXML = CreateObject("Msxml2.DOMDocument.3.0") Set oNode = oXML.CreateElement("base64") oNode.dataType = "bin.base64" oNode.text = vCode Base64Decode = oNode.nodeTypedValue Set oNode = Nothing Set oXML = Nothing End Function When I call this function with a small string , then this function works fine . But when I

How to invoke three ajax functions together?

梦想的初衷 提交于 2019-12-13 06:33:14
问题 Below is the code in my asp page Ajax.asp <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>Ajax.asp</title> <script type="text/javascript"> function Delay(SECOND) { var xmlHttp; try { xmlHttp=new XMLHttpRequest(); } catch (e) { try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { alert("Your browser does not support AJAX!"); return false; } } } xmlHttp

Virtual include not working

为君一笑 提交于 2019-12-13 06:27:35
问题 I have recently taken over a website written in Classic ASP which i had no previous experience with. In the root of the site the default.asp has an include: #include virtual="/inc/common.asp" However when hosted on the web server or locally (IIS) it returns with an error which says the include file 'common.asp' could not be found. The inc folder exists in the same directory as the default.asp and the common.asp is in the inc folder. Any help would be appreciated! 回答1: You say that the inc

Using reCAPTCHA with Classic ASP

六月ゝ 毕业季﹏ 提交于 2019-12-13 06:01:37
问题 I'm trying to use this example of classic ASP but I have 2 pages, one is form page, the other is verify page. I'm a total newb at classic ASP so I'm not sure if I'm making some syntax errors or not. https://developers.google.com/recaptcha/docs/asp On my form page, I'm loading reCAPTCHA via JS and that part is working fine. On the verify page, I have the code below. Main code (I removed stuff from Google that I wasn't going to use like generate a recaptcha form field with ASP) recaptcha

ASP Classic Text Driver For Windows 2012

旧时模样 提交于 2019-12-13 05:45:43
问题 We have an old ASP Classic website which has been running on Windows 2003 and needs to be moved to 2012. Most of the site works apart from a section where we need to be able to upload CSV or Excel documents full of categories to the server. I know no Microsoft Driver existed at the time of Windows 2008 which is why we have had to leave the site on 2003 for so long but we are trying to solve this issue now either by -finding the correct MS Text/CSV/XLS driver for Windows 2012 -buying a