asp-classic

writing out a null in javascript

大城市里の小女人 提交于 2019-12-11 13:37:03
问题 This question is in follow up to this one: write binary data using JavaScript on the server. The problem there with just using Response.Write to write the string is that the string contains a null character which JavaScript recognizes as the end of the string. The string I'm trying to write starts with the following (written here in character codes) 255 216 255 212 0 16 ... JavaScript will only output the first 4 characters here, because it recognizes the 5th as a string terminator. Is there

Is 500.100 error only raised by classic ASP page or also by ASP.NET?

痴心易碎 提交于 2019-12-11 13:35:27
问题 I have a website that contains both classic ASP and ASP.NET pages. I have ELMAH taking care of ASP.NET errors. To take care of classic ASP errors, I was thinking of including an error page setting for 500.100 error code in IIS 7 'Error Pages' settings so a URL of '/Error.asp' gets executed when 500.100 error occurs. My question is: will this setting cause server-side errors raised in ASP.NET pages to also get redirected to /Error.asp? 回答1: 500.100 is raised by classic ASP only: http://support

Classic ASP using MVC routing on IIS7

守給你的承諾、 提交于 2019-12-11 13:33:40
问题 After taking the first hurdle, I found something amusing. Direct access (i.e. /OLD/ASP/myFile.asp ) to the page works (well, no, but it returns a plausible ASP error ;) ). However, trying to route the page such as: routes.MapPageRoute( "OldASP", "Page/{*id}", "~/OLD/ASP/myFile.asp", false, new RouteValueDictionary(), new RouteValueDictionary(new { @id = @"\d+" }) ); Returns the magnificant There is no build provider registered for the extension '.asp'. error (which was originally solved for

ADO Recordset Decimal value issue

假如想象 提交于 2019-12-11 13:29:41
问题 I have code similar to Dim A, B, C Set rs = Server.CreateObject("ADODB.Recordset") strSql = "Exec [dbo].[some_sp] IND" rs.open strSql,CN,3,3 Do While Not rs.EOF 'these columns are returned as decimal(10,2) format A = rs("col1") B = rs("col2") rs.MoveNext Loop C = A + B 'i get type mismatch error here And I used response.write to check values for A, B they are in integer format and not decimal Do i have to format recordset again to set decimal values? And what could be possible problem for

classic asp htmlfile object remove child

好久不见. 提交于 2019-12-11 13:28:44
问题 have to extract some info from an HTML File and strip out a div and I need to use classic asp. I'm using HTMLFile object and it works everything except when I try to remove the div here the relevant part of the routine: ....... Set HTML = CreateObject("HTMLFile") Set Frame = CreateObject("HTMLFile") ......... tmp=t.ReadAll HTML.Write tmp t.close Set SPN=HTML.getElementsByTagName("div") for each sp in SPN if sp.getAttribute("id")="frame" then Frame.write sp.InnerHTML exit for end if next Set

how to pass javascript array to oracle store procedure by ado parameter object

天涯浪子 提交于 2019-12-11 13:22:48
问题 I am working on a asp+oracle web project, and I need a multiple user select function. 1, use javascript build up a string array : var userArray = ["Simon","Sheng","Cheng"]; 2, pass it by ado parameter object,but I don't know how to fill Parameter ojbect : var cmd = Server.CreateObject("ADODB.Command"); var param = cmd.CreateParameter("par",????????????)<--I don't know how to fill; 3, create store procedure in oracle create or replace package demo_pkg as type charArray is table of varchar2(255

Triple Inner join with over 10.000 rows and asp-calculations stalls application

北慕城南 提交于 2019-12-11 13:09:53
问题 My ASP Classic application are fetching over 10.000 rows via a triple inner join. After this, it is going through each line, calculating some stuff and putting data in a multidimensional array with 17 coloumns. All this are being fetched through a jQuery AJAX when pushing the search button. Logically this takes a while, 5+ minutes actually. It all works fine. BUT... While doing this, the whole system freezes, not only for the user doing the calculations, but also for all the other users using

Receiving SOAP notifications from eBay api into ASP variable?

白昼怎懂夜的黑 提交于 2019-12-11 13:07:23
问题 I am trying to receive ebay api transaction notifications into an ASP hosted on a web server. The notifications are sent as SOAP messages and can be sent to a URL with a query string. Notifications must be responded to with HTTP 200 OK. I would like the notification to land inside a variable so that I can parse it and send it on to the next part of the system. http://developer.ebay.com/DevZone/guides/ebayfeatures/Notifications/Notifications.html#ReceivingPlatformNotifications In the

Strip special character in ASP

主宰稳场 提交于 2019-12-11 13:05:59
问题 may anyone tell me that how to strip special character in ASP (classic). I'm using MS Access database. I meant is there any function like stripslashes() or addslashes() {PHP}. Any help will be appriciated 回答1: The function StripSlashes in PHP can be written as function StripSlahes(input) StripSlashes = replace(input,"\","") end function in ASP. AddSlashes() is slightly more complex, you need 3 calls to replace function AddSlahes(input) AddSlashes = replace(input,"\","\\") AddSlashes = replace

Why are accented characters rendering inconsistently when accessing the same code on the same server at a different URL?

拥有回忆 提交于 2019-12-11 13:01:19
问题 There is a page on our server that's reachable via two different URLs. http://www.spotlight.com/6213-5613-0721 http://www.spotlight.com/interactive/cv/1/M103546.html There's classic ASP behind the scenes, and both of those URLs actually do a Server.Transfer to the same underlying ASP page. The accents in the name at the top of the page are rendering correctly on one URL and incorrectly on the other - but as far as I can tell, the two requests are returning identical responses (same markup,