[thelist] ASP Problem - Pulling schedules items in a loop?
Jon Hughes
hughesj at firemtn.com
Mon Jun 4 10:10:36 CDT 2007
Ken,
Basically, right now, it pulls one item: Whichever is in the date match.
What I want to do, is output ALL items in the schedule.asp file, so I
can return things in all dates.
Schedule.asp:
startdate=DateValue("5/29/2007")
enddate=DateValue("6/10/2007")
if (date() >= StartDate and date() <= EndDate) or showall = "1" then
imgLink = "this.asp"
imgSrc = "this.jpg"
end if
startdate=DateValue("6/11/2007")
enddate=DateValue("6/21/2007")
if (date() >= StartDate and date() <= EndDate) or showall = "1" then
imgLink = "that.asp"
imgSrc = "that.jpg"
end if
---
Single Pull:
<a href="<%=imgLink%>"><img src="<%=imgSrc%>"></a>
ALL Pull (NOT WORKING CODE):
<a href="<%=imgLink%>"><img src="<%=imgSrc%>"></a> (this is "this")
<a href="<%=imgLink%>"><img src="<%=imgSrc%>"></a> (this is "that")
Basically, I want to do that... Pull everything in the same file,
regardless of the date, without setting different variables for each.
-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of Ken Schaefer
Sent: Friday, June 01, 2007 10:39 PM
To: thelist at lists.evolt.org
Subject: Re: [thelist] ASP Problem - Pulling schedules items in a loop?
Hi Jon,
Could you explain exactly what you're trying to accomplish? When you say
"how
do I pull ALL of these?" - all of what, exactly?
Cheers
Ken
More information about the thelist
mailing list