asp-classic

Access client variable within server-tags in vbscript

我们两清 提交于 2020-01-06 15:29:07
问题 I have the following block of code that's im running in an asp-page: <script language="VBScript"> sub ok_onclick() dim localVariable localVariable= "hello" <% call serversideFunction(localVariable) %> end sub The following block <% call ServerSideFunction(localVariable) %> Throws the following error: An unhandled exception ('Variable is undefined: 'localVariable'') occurred in dllhost.exe [24184] I've noticed that i can't put my local variables within the servercode-tags. So my question is,

Key Management - Classic ASP - encrypt/decrypt

ぐ巨炮叔叔 提交于 2020-01-06 14:45:30
问题 Here is my scenario: I have file called gen.asp, when ever someone requests this file It needs to generate a encrypted-random-key and pass it back. (Gen.asp can not store the key it generated, anywhere no session, no database) I have a different file called GenValid.asp, in this file I need to verify weather the encrypted-random-key is generated by Gen.asp or not. (validation can be if the encrypted-random-key can be decrypted then it's a valid key, if not it's not a valid key) How can I do

Combine Two Strings and Order them by Date/Time PART# 2

二次信任 提交于 2020-01-06 14:35:51
问题 This is more of a 2nd part of a question that start off here here The code below works great but I forgot something, there is also a City and State before the Date/Time, Example is: strcountstf = "Chicago, IL,02/01/2012 3:05am###,Akron,OH,02/02/2012 7:05am###,Nashivlle,TN,02/05/2012 8:30pm###" strDateNTimes = "Buffalo,NY,03/01/2011 2:20am###,Las Vegas,NV,12/02/2012 8:00am###,Mount Vernon,IN,02/06/2012 6:45pm###" Below is the working code but I forgot to add the City and State into strcountstf

How can I verify a PayPal ID?

China☆狼群 提交于 2020-01-06 13:21:58
问题 I have an application writted in ASP with a simple form. The users fill up the form with their PayPal ID to receive money exchanging their points. I want to verify the PayPal ID before they submit the form using some kind of http request. I have looking into the PayPal API but i didn't find anything. Thanks. 回答1: If the PayPal api doesn't support a "verify" of call, then here's the usual alternative: Create a "paypal_ids" database table in your application When a PayPal id is entered by

Consume Result of .NET Function Returning LIST(Of Type) in Classic ASP

混江龙づ霸主 提交于 2020-01-06 11:34:18
问题 Imagine the following VB.NET class: Public Class P Public Function GetDumbList() As List(Of DumbPeople) Dim retList As New List(Of DumbPeople) retList.Add Person1 retList.Add Person2 Return retList End Function End Class Now we have the following Classic ASP Page: <% Dim P Set P = Server.CreateObject("Project.Assembly.Namespace.P") retList = P.GetDumbList() ... ... ... %> How do you use retList? I have tried looping through using the 2 following methods: 1. For Each Person in retList Throws

unable to resolve active-server-pages-error-asp-0126 issue

最后都变了- 提交于 2020-01-06 08:10:50
问题 I am getting error Active Server Pages error 'ASP 0126' Include file not found /Map/index.asp, line 5 The include file '..\securitycheck.asp' was not found. Physical Path: ..\Dev\Source\Web\Clients\Property\securitycheck.asp ..\Map-Dev\Source\Web\Map\index.asp Virtual Path: ..\Property\securitycheck.asp ..\Property\Map\index.asp I want to include securitycheck.asp file into index.asp file using virtual directory. Can anybody help on this. 来源: https://stackoverflow.com/questions/58786186

How to move the scroll bar of the browser on a pdf file with ASP / Javascript?

守給你的承諾、 提交于 2020-01-06 07:52:47
问题 I am looking for some time if there are free apis / or other projects in order to move the scroll bar of the browser to the position of an item referred to a pdf document. I would like to redirect the user to a pdf file of my site ("/ Help.pdf") directly to the desired position .(on a title or page number, for example) and not on position (x or y) as it varies according to the screen resolution. 回答1: You can do it passing parameters to the link : <A HREF="http://www.example.com/myfile.pdf

How to move the scroll bar of the browser on a pdf file with ASP / Javascript?

余生长醉 提交于 2020-01-06 07:52:27
问题 I am looking for some time if there are free apis / or other projects in order to move the scroll bar of the browser to the position of an item referred to a pdf document. I would like to redirect the user to a pdf file of my site ("/ Help.pdf") directly to the desired position .(on a title or page number, for example) and not on position (x or y) as it varies according to the screen resolution. 回答1: You can do it passing parameters to the link : <A HREF="http://www.example.com/myfile.pdf

How do you debug classic ASP?

吃可爱长大的小学妹 提交于 2020-01-06 07:20:45
问题 I have to debug a classic asp site being served by IIS 7 (windows 2008). How can I do this? I have only worked with ASP.NET. 回答1: From an MSDN blog post: http://blogs.msdn.com/mikhailarkhipov/archive/2005/06/24/432308.aspx Here is how to make ASP debugging work: Enable ASP debugging on the server. (I also added DEBUG verb to the asp extension, but I am not sure if it is required). Open classic ASP in VS 2005. Set breakpoint. View page in browser or run without debugging. Debug | Attach to

Show image based on date VB Script [duplicate]

人走茶凉 提交于 2020-01-06 07:10:20
问题 This question already has answers here : How can I compare two dates in vbscript/ASP? (2 answers) Closed last year . I am extremely new to VB Script, and any help is extremely appreciated. I currently have 4 images that need to be displayed based on the date. I have named each image as 1,2,3 and 4. I am using the date function to display this but I am getting a 500 error message. If there is a better way to accomplish this with VBScript please let me know. The images are in a folder specified