asp-classic

Read classic ASP's cookies with PHP

我怕爱的太早我们不能终老 提交于 2019-12-24 13:13:07
问题 How do I obtain the asp cookie's name and value using PHP so i may assign it to a variable? PHP and ASP are on the same domain. Classic Asp Create Cookie response.cookies("apple")("red")="reddelicious" response.cookies("apple")("yellow")="gingergold" response.cookies("apple")("green")="grannysmith" response.cookies("apple").expires = dateadd("d",2,Now()) Classic ASP Read Cookie strRed = request.cookies("apple")("red") strYellow = request.cookies("apple")("yellow") strGreen = request.cookies(

redirecting postdata

二次信任 提交于 2019-12-24 12:11:43
问题 I've recently upgraded a page on our server from classic asp to asp.net The page recieves postdata and saves it to a file. The page is used by many of our clients and the url (to the asp page) is hard coded into their software. This means that i cannot simply swap the old page out for the new one. I'm trying to find a way to redirect clients from the old url to the new one. I know you can do a simple redirect using IIS, but this does not cause the postdata to be redirected. I've tried setting

Passing multiple URL parameters to Classic ASP

强颜欢笑 提交于 2019-12-24 12:09:58
问题 Edit: Turns out my JavaScript function is not working as I thought, but please help with the ASP issue whilst I fix the JavaScript. Edit 2: Using alert(JSON.stringify(sales)) to see the object I get this: {"712":{"KR":1,"LR":0},"713":{"KR":1,"LR":0}} Edit 3: Need to re-write my sales script, i'm trying to use objects but it doesn't seem to be working as I don't have much experience with this part of JS. var products = { "KR" : 4, "LR" : 6 }; var sale = [ ]; function sale(id,product,value) {

ASP Classic - Find last weeks Friday or any day using days as numbers (1-7, 1=Monday and so on..)

六月ゝ 毕业季﹏ 提交于 2019-12-24 12:06:06
问题 I would like to find last weeks Friday for example. Using days as numbers (1 through 7) for example: 1= Monday and so on.. It would be something like this but I'm stuck at the GetLastWeek, Please see below, THANKS. <% dim weeknum weeknum=5 dim GetLastWeek GetLastWeek=???? <== FIND LAST WEEKS FRIDAY AS A DATE Eg: MM/DD/YYYY %> Example: Last weeks Friday was on: <%=GetLastWeek%> 回答1: I probably start by working out what is the current day of the week and working back from there, you can use

Having trouble spliting the contents of a node in XML when the contents are empty

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 12:01:24
问题 Give the following XML I am trying to split the contents of the "extra" node into four parts by the | delimiter and return the four parts in the response as chdspt(0), chdspt(1), chdspt(2) and chdspt(3). The problem I seem to have is if the XML loaded is missing anything inside the "extra" node then the whole script fails with a 500 error. <Export> <SAVED_EXPORT> <id>00-6189</id> <title>00-6189 Start Mech Switch</title> <price>5.46 USD</price> <extra>Male|Adult|Black|medium</extra> </SAVED

Asp classic mail function sends string with blank spaces

有些话、适合烂在心里 提交于 2019-12-24 11:35:35
问题 I am sending a mail with CDO.Message object and the mail arrives with a blank space between characters. For example, I sent this string: "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat

ADODB.Recordset error '800a0e78' Operation is not allowed when the object is closed

两盒软妹~` 提交于 2019-12-24 10:57:15
问题 Set RsItem = Conn.Execute("EXEC E_UpdateDevBehaviourSmalls @ClientID=" & Session("ClientID") & " ,@UserID=" & Session("EUserID")& " ,@cCompID=" & cCompetenceid & " ,@reason=" &reason & " ,@comptype=" & comptype &",@GID=" & GID & " ,@Behaviour='" & MakeSendable(Behaviour) & "' ,@Deadline='" & deadlinedatetime & "' ,@DevBehaviour='" & MakeSendable(DevBehaviour) & "' ,@Why='" & MakeSendable(Why) & "' ,@ExtraNote='" & MakeSendable(ExtraNote) & "'") if GID = 0 then if not RsItem.eof then GID =

ASP 3.0 - Server.Execute Problems: Suffering from “ASP Amnesia” (Text Revised) [duplicate]

放肆的年华 提交于 2019-12-24 10:49:43
问题 This question already has answers here : ASP 3.0 - Server.Execute Problems: Suffering from “ASP Amnesia” (3 answers) Closed 5 years ago . I'm using IIS 6, and created Two ASP 3.0 files: -Main.asp -Colors.asp Main.asp <% If sColor = true then Server.Execute "Colors.asp" End If 'If sColor is true, Pops over to Colors.asp 'Then pops right back over to here again 'Once back here again, it has no idea what 'sRed or sBlue was at all...it's as if has 'been "blank slated"...sRed? Who the heck is sRed

How to display image on web page from ADODB.stream object

[亡魂溺海] 提交于 2019-12-24 10:38:29
问题 I have a classic ASP question. I need to show images on my webpage. But because of the security reasons, I cannot simply put all of my images in the images folder in my website folder and I need to put them outside of my website folder. For example, my website folder is located at: C:\Inetpub\wwwroot\mysite\ But I need to put images (which I want to show on my web pages) at: C:\images\ I am trying to use ADODB.stream object to pull the images using ASP vb codes as shown below: <% Response

Asp/asp.net Hosting Info Page

时光总嘲笑我的痴心妄想 提交于 2019-12-24 10:10:01
问题 I think it's a stupid queston below. As I know there is a phpinfo() function to view php hosting as a info page. Is there a asp/asp.net info page for an asp/asp.net hosting? 回答1: You could create a page with nothing on it and enable tracing for the page. It won't give you everything you want but have a look. 回答2: I created a little plugin for asp.net MVC that show info about application, loaded assemblies, build number and change logs. You can find more info here and integrate it by include