asp-classic

Using Paypal REST API with Classic ASP

ぐ巨炮叔叔 提交于 2019-12-06 06:27:52
I am trying to make a simple call to Paypal API with the follow code: On error resume next Set objHTTP = CreateObject("Microsoft.XMLHTTP") objHTTP.open "POST", "https://api.sandbox.paypal.com/v1/oauth2/token", False objHTTP.setRequestHeader "Accept", "application/json" objHTTP.setRequestHeader "Accept-Language", "en_US" objHTTP.setRequestHeader "Authorization", "Basic " & Base64Encode("client-id:secret") objHTTP.send "grant_type=client_credentials" Response.Write err.description & " | " & err.number But its returning the error: The download of the specified resource has failed I can do this

Validation for Form and QueryString in ASP Classic using Regex. Almost working but missing something?

自作多情 提交于 2019-12-06 06:26:42
I'm trying to add some Input Validation in Classic ASP by using the function/code seen below. The only one that looks like it's working correctly is the "text" type. the others I keep getting errors or it just does not filter correctly. I'm trying to understand what I'm doing wrong please help me. Valid Data Types: "email", "integer", "date", "string" and "text". The first three are obvious, the last two have slight differences. The " email " should only allow numbers and leters, and the following characters " @ " , " - " , " . " , " _ " The " date " should validate by running IsDate and if

How to hash a UTF-8 string in Classic ASP

半世苍凉 提交于 2019-12-06 06:02:52
I've been looking for a Classic ASP script that allows me to hash a string using the MD5 algorithm. I need to match this hashed string against the same string in an ASP.NET Page, hashed using .NET's MD5 hashing algorithms. Even though I have found several scripts for Classic ASP that generate the hash, I haven't found one that generates the correct hash using non-English characters (like ñ , for example). Do you know some Classic ASP script that works in this particular case? Note: I have tried these scripts: http://userpages.umbc.edu/~mabzug1/cs/md5/md5.asp http://forums.aspfree.com/code-bank

Classic ASP and MVC side-by-side, different projects?

江枫思渺然 提交于 2019-12-06 05:56:02
问题 I've tried asking this in a few different ways, but let's give it another shot (as I've yet to receive an answer and this is driving me nuts!) I have a very large classic ASP 3.0 application (~350K lines) that I want to start migrating to ASP.NET MVC. I'd like to keep the old ASP files in a separate project from the MVC stuff. Ideas on how to debug these? Should I just dump the files in the same folder and create two different projects ( a WAP and an MVC app) that reference the relevant files

using Solr with IIS [closed]

早过忘川 提交于 2019-12-06 05:35:46
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . We are going to use solr as our search server but as you know solr is based on java and apache server and our database is MSSQL and our webserver is IIS. Could you possible suggest me the best way to incorporate java apache asp.net and IIS? Best 回答1: You cannot deploy Solr inside

Converting a fairly simple C# Class library into a COM object?

不羁的心 提交于 2019-12-06 05:13:42
Here's my problem: I have to call a web service with a secure header from a classic ASP page that returns a complex data type. For various reasons concerning a 3rd party tool it has to be classic ASP. We decided that I should create an external dll to do this - which I did (in c#) so it returns a dataset (Something ASP can understand). However now I need to expose that function to the ASP page. Because this is classic ASP I think the only straightforward way to do this is to expose this class library as a COM object. I need to know the down and dirty easiest way to accomplish this task. What

Classic ASP using COM+ on x64 Windows Server 2008 and IIS7

蓝咒 提交于 2019-12-06 05:13:40
问题 (Note: I thought about posting this to serverfault, but I figured more developers have banged their heads against these issues than admins) I'm trying to set up a web page that uses both ASP Classic and ASP.NET 2.0 in the environment mentioned above. After applying many common fixes on the web and a few lucky guesses, the ASP.NET 2.0 pages are finally running fine (Minus COM+). The ASP Classic pages aren't running at all. So I'm thinking the x64 environment is a the cause of most of my

Display loading content/image while waiting

拜拜、爱过 提交于 2019-12-06 05:00:11
I have got an ASP page that does some back-end processing. It calls a stored procedure which will return a status value if the process is complete. The whole processing time can last around 10-30 seconds, depending on the amount of input data. During this period of time, I guess it'd be much better to display a loading image or text than just a blank page. At least in this way the user knows the her request is being processed and just need to wait for it to finish. I am not sure how we could implement this with classic ASP. Any ideas? Thanks very much. EDIT: Well I guess there's something I

difference between server.createObject and createobject in asp classic

时间秒杀一切 提交于 2019-12-06 04:47:25
问题 according to http://msdn.microsoft.com/en-us/library/ms524620.aspx you should use server.createObject If you are already familiar with VBScript or JScript, note that you do not use the scripting language's function for creating a new object instance (CreateObject in VBScript or New in JScript). You must use the ASP Server.CreateObject method; otherwise, ASP cannot track your use of the object in your scripts. but some other folks think that server.createObject implies an overhead that most

Classic ASP using C# .net DLL Object doesn't support this property or method

走远了吗. 提交于 2019-12-06 04:41:31
Hey all this is my first time creating a COM object for a classic asp page. The process I followed when creating this COM DLL is this: 1) Used the Strong Name Tool (sn.exe) and placed the .snk file within the app. (sn -k myKey.snk) 2) Added: [assembly: AssemblyKeyFile(@"myKey.snk")] [assembly: ComVisible(true)] to the AssemblyInfo.cs. I do get a warning on the KeyFile saying: Use command line option '/keyfile' or appropriate project settings instead of 'AssemblyKeyFile' 3) Ran the following from the Administrator: SDK Command Prompt: tlbexp c:\\temp\\dll\\classicASPWSEnDecrypt.dll /out:c:\