asp-classic

Return JSONP from Classic ASP with Javascript server side coding

我是研究僧i 提交于 2019-12-11 06:47:13
问题 I'm calling a classic .asp page from jquery to return a list (using JSONP). I want to use JSONP because of the same origin policy that causes problems when my website is viewed through google translate. The problem with all of the solutions I have found is that they assume the asp page is using VBscript as the server side language. I am using javascript as the server side language, in asp, to connect to a db and return results. I have tried a few different methods that have only returned 500

Twitter api response unreadable

拥有回忆 提交于 2019-12-11 06:41:24
问题 We have been using twitter api for a while now but suddenly it stopped working. Tracing it back it seems that the response from the MSXML2.ServerXMLHTTP request is unreadable by ASP vbscript. Even a simple GET request to a page turns into invalid charactors. Opening https://api.twitter.com/oauth/request_token in a browser will show a string "Failed to validate oauth signature and token". When I try to get the same thing in ASP it returns unreadable data. <% @LANGUAGE="VBSCRIPT" %> <% Set

Download file over HTTPS in IE 5.5 / IIS 5.0

这一生的挚爱 提交于 2019-12-11 06:39:52
问题 I desperately need help with this one. I have a classic ASP website in IIS 5, where I need to stream pdf to users. I am using ADODB.Stream to generate chunks of binary data and using response.BinaryWrite to stream it to client. Now problem is that there is a known feature in IE which sets the Response CacheControl header to "no-cache" by default for SSL (https) sites. Hence I am getting the standard error: "Internet Explorer cannot download File.doc from ServerName. Internet Explorer was not

Switching application to use Constraint based kerberos

≡放荡痞女 提交于 2019-12-11 06:39:21
问题 I have an old application that we setup with delegation based kerberos. Everything with the application worked fine till we tried it out on one of our new Windows 10 machines. After awhile, we finally figured out that Credential guard is not playing nice with this old application. According to https://docs.microsoft.com/en-us/windows/security/identity-protection/credential-guard/credential-guard-considerations Kerberos Considerations When you enable Windows Defender Credential Guard, you can

Using asp how to create formatted currency with commas?

↘锁芯ラ 提交于 2019-12-11 06:35:55
问题 Using asp. Trying to format a decimal number to add commas. Are there simple to use functions or techniques in asp to go from a decimal value to currency format with commas? Examples: DecimalValue = 3439.01 CurrencyValue = " 3,439.01" DecimalValue = 3843838.38 CurrencyValue = "3,843,838.00" 回答1: use the vbscript function FormatCurrency complete syntax is: FormatCurrency(Expression[,NumDigAfterDec[, IncLeadingDig[,UseParForNegNum[,GroupDig]]]]) example: FormatCurrency(20000) output = $20,000

ServerXMLHTTP request returing data but not returning url of final page after 301 redirection

狂风中的少年 提交于 2019-12-11 05:55:51
问题 I am trying to make LINK FINDER app in ASP It working is divided into 5 step Send http request to server at www.foo.com Check status of request If its 200 then move to step 4 otherwise show error Parse all link Send http request to server to parsed link I am able to do first 4 step, But facing challenge in 5th step I am getting 3 type of links 1.)absolute link : http://www.foo.com/file.asp 2.)links from root directory, which need domain name eg /folder2/file2.asp 3.)relative link : ../file3

Calling C# DLL from ASP on Compact Framework (Windows CE)

空扰寡人 提交于 2019-12-11 05:49:11
问题 I am writing an ASP application on Windows CE that will need to call business logic that exists in a .NET DLL (C#). It appears as though although the Compact Framework allows us to call native code from managed code, the CF doesn't allow us to call managed code from native code. - But, I'm not 100% sure on this. Has anyone had success using COM Interop to call methods from a managed dll from ASP on CF? If so, can you point me to where I can learn how to do it? If not, given that I must use

Classic ASP - Email form with attached file - please help

五迷三道 提交于 2019-12-11 05:48:44
问题 Ive got abit of a problem ive got an email web form that send the input to an email address but what I now need is a file input field were the user can also send an image as an attachment. So contact name, logo (attachment). Ive been told in order to send the attachment it needs to be saved in a folder on my hosting before it can be sent. Ive spoken to the hosting company and they dont have anything in place to make this easier such as aspupload. In the form name="contactname" and name="logo"

Uploading picture after migration from IIS 6.0 to IIS 7.5

扶醉桌前 提交于 2019-12-11 05:45:23
问题 We've got a problem when trying to upload a picture to a IIS application after we've migrated from Windows Server 2003 & IIS 6.0 to Windows Server 2008 R2 & IIS 7.5 a couple of days ago. You are allowed to choose a picture, but as soon as you click on the "Send"-button to perform the upload you're introduced to the following error message: " Server object error 'ASP 0177 : 800401f3' Server.CreateObject Failed /****/****/photouploadproc.asp, line 15 800401f3 " In this code, the program uses a

Distance between two lat/long points in Classic ASP

♀尐吖头ヾ 提交于 2019-12-11 05:34:12
问题 I have two pairs of latitude/longitude, and want to find the distance between them. I am stuck with using Classic ASP on this particular website. I found plenty of code examples using the Haversine equation, but not in ASP (which lacks the ACos function, and doesn't have pi built in! I eventually got some code working, but after careful testing it proved to be flawed. My understanding of spherical geometry isn't good enough, so please can anyone say if they have done this in ASP before?!