asp-classic

Display multiple markers on a map with their own info windows

徘徊边缘 提交于 2019-12-20 01:39:42
问题 I need to display multiple markers on a map, each with their own infowindow. I have created the individual markers without a problem, but don't know how to create the infowindows for each. I am generating a map using the V3 API within an ASP-based website, with markers being created from a set of DB records. The markers are created by looping through a rs and defining a marker() with the relevant variables: var myLatlng = new google.maps.LatLng(lat,long); var marker = new google.maps.Marker({

Invalid procedure call or argument in vbscript

拜拜、爱过 提交于 2019-12-20 01:02:25
问题 I am using vb script to upload a file to the server. The problem I'm having is that when I set the file to ASCII format like this... Set oFile = oFS.CreateTextFile(sPath & FileName, True, False) I get an error when the sub is called that says Invalid procedure call or argument but if I set the file to unicode Set oFile = oFS.CreateTextFile(sPath & FileName, True, True) it uploads successfully but will not open because of the incorrect encoding. The line that produces the error is this one if

Invalid procedure call or argument in vbscript

橙三吉。 提交于 2019-12-20 01:02:19
问题 I am using vb script to upload a file to the server. The problem I'm having is that when I set the file to ASCII format like this... Set oFile = oFS.CreateTextFile(sPath & FileName, True, False) I get an error when the sub is called that says Invalid procedure call or argument but if I set the file to unicode Set oFile = oFS.CreateTextFile(sPath & FileName, True, True) it uploads successfully but will not open because of the incorrect encoding. The line that produces the error is this one if

is it possible to include php in html on IIS7?

孤街醉人 提交于 2019-12-19 21:36:06
问题 It seems to be possible to do so in Apache, include php script inside HTML But can I make my IIS 7 parse html files for php? Currently my html files allow asp includes like it would be splendid if I could just do that with a php file. My server runs .php files as you would expect. What I've tried is adding a Handler Mapping in IIS with the same values as the *.php mapping that was created with my IIS/PHP install, only switched for *.html This didn't work, then I added a handler in my web

Sending Mail code in ASP

半腔热情 提交于 2019-12-19 12:28:11
问题 I have given one HTML file. When someone fills the form & sends it, it should send email to their mail id. how to write code for this in ASP? Your Name:* Email:* Phone No: Your Message:* Gnaniyar Zubair 回答1: Use CDOSYS like this:- Dim oMsg : Set oMsg = CreateObject("CDO.Message") oMsg.From = "Me <me@mymail.myserver.com>" oMsg.To = "Bloke <bloke@somewere.com>" oMsg.Subject = "Test" oMsg.HTMLBody = "<html><body>Hello World</body></html>" oMsg.Send Of course you need to get the To field from

MySQL / Classic ASP - Parameterized Queries

落花浮王杯 提交于 2019-12-19 10:36:07
问题 In an absolute emergency, I am trying to go through my website and add parameterized queries. I'm a newbie and have only just learnt about them. My problem is, I only know a very little about connection types and all of the examples I'm seeing are using another methods of connection, which is confusing me. I don't particularly want to change the way I connect to my DB, as it's on lots of pages, I just want to update my queries to be safer. This is how I have been connecting to my DB: Set

Change stored proc to inline sql

邮差的信 提交于 2019-12-19 10:25:45
问题 I have the following classic asp working, calling a stored proc in the database. I would like to convert it over so instead of calling the stored proc it passes in the sql, adds the prams then executes it. I tried all sorts of things and can't get it working. Can someone convert this example? Also it seems difficult to get reasonable error messages when passing in sql with params. Is there a way to see traces of this call so we can have some idea what is causing the problem? Set cmd = server

SagePay Form - Classic ASP - Currency Field is missing using rijndael.asp

久未见 提交于 2019-12-19 10:18:05
问题 I am trying to add the Form Intergration SagePay payment gateway in Classic ASP. I have a working PHP version that I sourced from SO. I have translated it into VBSCRIPT, everything seems to be working fine but the encryption. I am using all the same inputs as the PHP script so that the Cryptstring is exactly the same as the PHP Cryptstring before it is encrypted. I've downloaded and using the Rijndael.asp & includes.asp files found here: Encrypting Crypt field using Classic ASP for SagePay

howto implement Synchronizer Token Pattern in classic asp

最后都变了- 提交于 2019-12-19 09:57:12
问题 to prevent CSRF I want to implement the Synchronizer Token Pattern in my classic asp application. I understand that iIshould generate a token in session_onstart. What I do not get is how to generate such a token as it should be random and unique. So a simple Rnd() and randomize will not work, right? Furthermore should it be hashed in any way? How? Thanks for any hints... Cross-Site Request Forgery (CSRF) Prevention Cheat Sheet 回答1: You could use a GUID as token:- Function GetGUID() GetGUID =

Read text file and show in table vbscript

江枫思渺然 提交于 2019-12-19 09:54:17
问题 I have a text file with following structure :- C:\Users\abc\Desktop\New Folder\sample.txt AccountName->AbcPos AccountName->dblLayer queryAccount->qskxyz queryName->qixyz queryName->abc queryName->def next C:\Users\abc\Desktop\New Folder\New folder\sample3.txt AccountName->AbcPos AccountName->dblLayer queryAccount->qskxyz queryName->qixyz AccountName->Names AccountName->prelLayer queryAccount->serchTerm queryName->myName1 next C:\Users\abc\Desktop\New Folder\sample1.txt AccountName->AbcPos