Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Determining active dates for queued items?

Reply
Thread Tools

Determining active dates for queued items?

 
 
FrankEBailey
Guest
Posts: n/a
 
      05-21-2007
Hi,

I have a limited number of ad slots on my website, let's say there are
5. I have lots of people wanting to advertise in those slots, let's
say there are 100. They each join the queue for an ad slot on a first-
come, first-served basis. I have been trying to find a way to
determine the active date for a queued item. For the first five items
in the queue it's easy, it's just the expiry date of the item in a
live slot that expires first. For the next five queued items it's
still easy, because it's just the expiry date of the item in the queue
that will expire first. HOWEVER, after that it becomes more complex,
because the queued items will continually be slotting into live slots
as live items expire. So my question is, is there a straightforward
way, in ASP, of determining the active date for a queued item in a
queue of arbitrary size?

Any and all help or suggestions appreciated.

Thanks in advance!

 
Reply With Quote
 
 
 
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      05-21-2007
FrankEBailey wrote:
> Hi,
>
> I have a limited number of ad slots on my website, let's say there are
> 5. I have lots of people wanting to advertise in those slots, let's
> say there are 100. They each join the queue for an ad slot on a first-
> come, first-served basis. I have been trying to find a way to
> determine the active date for a queued item. For the first five items
> in the queue it's easy, it's just the expiry date of the item in a
> live slot that expires first. For the next five queued items it's
> still easy, because it's just the expiry date of the item in the queue
> that will expire first. HOWEVER, after that it becomes more complex,
> because the queued items will continually be slotting into live slots
> as live items expire. So my question is, is there a straightforward
> way, in ASP, of determining the active date for a queued item in a
> queue of arbitrary size?
>
> Any and all help or suggestions appreciated.
>
> Thanks in advance!


How is the expiry date determined? Are you storing the amount of time
purchased and adding that to the active date? I assume the amount of timed
purchased can vary ... What unit of time is sold? And is there a minimum
purchase?
I assume you are storing this stuff in a database. Can you give us an idea
of the table structure and what type and version of database you are using?
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
System queued Windows Error Reporting xiowan Windows 64bit 2 03-20-2008 02:08 AM
AJAX simultaneous requests getting queued up dmagliola@gmail.com ASP .Net 2 02-02-2007 07:13 PM
ASP PerfMon Excessive Requests Queued Matt Jensen ASP .Net 1 12-14-2005 04:17 PM
Dates dates dates dates... SQL and ASP.NET David Lozzi ASP .Net 1 09-30-2005 02:18 PM
Dates! Dates! Dates! PW ASP General 4 08-09-2004 04:42 PM



Advertisments