asp-classic

How to find ID not in the master ID table

只愿长相守 提交于 2019-12-12 05:34:22
问题 Let's say I have a master table for Products , and another table which keeps lists of ProductIDs . Table name: Products -------------------- ProductID, Title, Price 1, Title 1, 12.00 2, Title 2, 15.00 4, Title 4, 11.50 8, Title 8, 13.89 11, Title 11, 12.00 Table name: ListOfProducts -------------------------- SomeID, ProductIDs 34, 4,8,1 35, 8,10,2 Now, you can see that in the table ListOfProducts , record with SomeID=35 , the list of products is 8,10,2 . How can I use SQL to quickly find out

vbscript mathematical expression not working

二次信任 提交于 2019-12-12 05:27:47
问题 In my asp code, I have 4 variables with different values. chAmount = 19.99 totalRefundAmount =0 voidQueueRefundAmount =15.99 amount=4 when I execute following statement if (CDbl(chAmount) + CDbl(totalRefundAmount) - CDbl(voidQueueRefundAmount) - CDbl(amount) < 0.00) then end if The if condition is true while it should not be because the answer of above expression should be 0 and it should not go in the if loop but it is going inside the loop . I am getting -1.77635683940025E-15 in the visual

Mailchimp Classic ASP endpoint error

99封情书 提交于 2019-12-12 05:26:13
问题 I'm using a method illustrated here: http://apidocs.mailchimp.com/api/downloads/serialized_xml_listsubscribe.asps I am using a correct API Key and ListID - However, when running the script I am getting the following response: "You must specify a email_address value for the listSubscribe method -90" I've searched and mailed their support but had no reply back as yet. Has anyone had a similar issue - any thoughts on it there's a parameter missing? Cheers. Heres the code from the Mailchimp

What if TinyURL API doesn't work..?

泪湿孤枕 提交于 2019-12-12 05:25:57
问题 I have a vbscript function to create a tinyurl from a regular url. FUNCTION GetShortURL(strUrl) Dim oXml,strTinyUrl,strReturnVal strTinyUrl = "http://tinyurl.com/api-create.php?url=" & strUrl set oXml = Server.CreateObject("Msxml2.ServerXMLHTTP.3.0") oXml.Open "GET", strTinyUrl, false oXml.Send strReturnVal = oXml.responseText Set oXml = nothing GetShortURL = strReturnVal END FUNCTION I have come across the problem when the tinyurl api is down or inaccessible, making my script fail: msxml3

Iterating though a JSON return using ASP Xtreme Evolution

别等时光非礼了梦想. 提交于 2019-12-12 05:15:37
问题 I'm trying to parse a return from Twitter using classic ASP with ASP Xtreme Evolution JSON Parser https://github.com/nagaozen/asp-xtreme-evolution/blob/master/lib/axe/classes/Parsers/json2.asp To keep things simple, here's a trimmed JSON return: [{ "user": { "id": 19720970 } }, { "user": { "id": 201195798 } }, { "user": { "id": 19768935 } }] What I need to do is iterate through each user to discover the id . The best I've got so far only returns the last id : dim Info : set Info = JSON.parse

paging on SQL Server database

↘锁芯ラ 提交于 2019-12-12 05:10:08
问题 It is very simple to do paging on access database (using absolute and pagesize) but I heard its hard to do paging on SQL Server database. How do I do I add simple paging to the following codes. <% SQL = "SELECT I.IMAGESID, I.IMAGESNAME, I.IMAGESSMURL" SQL = SQL & " FROM IMAGES I" Set objImages = objConn.Execute(SQL) %> <div class="row"> <label for="Images">Images</label> <% Do While Not objImages.EOF %> <img src="<%=objImages("IMAGESSMURL")%>" alt="<%=objImages("IMAGESNAME")%>" border="0" />

How to handle call back url in the google checkout for multiple websites?

泪湿孤枕 提交于 2019-12-12 05:03:49
问题 I have been working on google checkout integration in classic ASP, my client have various eCommerce websites and want to use single merchant account (Google Checkout) for all websites. I have set up the callback url in merchant account, but I need to identify from which website's order has been placed, to save information in the database. Can I specify a callback url from the code itself, for each different website using the single merchant account? 回答1: You can use the merchant-private-data

Styling buttons with css

不羁的心 提交于 2019-12-12 04:44:33
问题 I've styled buttons to look like hyperlinks so i can use request.post instead of querystring. The only problem is that when selecting certain characters it is a bit difficult as the area of the textbox is the letter itself (e.g - the character i). Is there a way to fix this problem without changing to hyperlink? I've also provided the styled buttons below <input type="submit" name="Page" value="#" style="background:transparent;border:0;display:inline;color:#00F;text-decoration:underline

Tls using classic asp to send mail

浪尽此生 提交于 2019-12-12 04:42:44
问题 Is any possibility to use TLS to send mail using ASP classic using a free lib? I have used CDO but i think that not allow TLS. Thanks for all, and sorry for the question. I can send mail using Gmail without problem, but now i need to send mail using a server that only allow Tls authentication. I dont find in the api or in internet the way to send a mail using TLS. Function bCorreoEnviarGeneral(objCorreo, bPorSeparado, sSep, sMailFrom, sMailTo, sAsunto, sCuerpo, sBCC, sAdjunto) dim i,j

force users to logout

空扰寡人 提交于 2019-12-12 04:33:01
问题 Currently I have a client and admin webpage. There are multiple users who will login to the client page. While in admin page, when I restored the database inside the admin page, I need to logout all the users who are currently login to the client page. Any ideas how it should be done? My current language using is classic ASP. If it can be done in ASP.NET, its fine too. Thanks. 回答1: It really depends what you've cached. If it's data then you can clear the cached data rather than forcing your