Determining Active Dates For Queued Items?

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?

View Replies


ADVERTISEMENT

Emails Queued Until Reboot

I have a new laptop that appears to be setup identically to the old one. I'm
working on an ASP page that sends an email. On the old machine the emails
are send just fine (CDO or CDONTS). However the new machine holds everything
in the queue folder until I reboot. After reboot, everything in the queue is
sent, but all new messages from the web page are again queued. I'm running
w2k sp4, iis 5, not using a smart host. The event viewer gives "Message
delivery to the remote domain "xxx" failed for the following reason: The
connection was dropped by the remote host.

View Replies View Related

Adding Items To An Array - And Keeping Items Previously Added

I have a funtion that is supposed to add items in my shopping basket.

It's an array, and each time the user is adding an item, it adds the item to the array with its quantity and size.

I've never used arrays before, read about it, etc...

The only problem is that when it adds the new product, it's not keeping the ones which were there before :-(.

I have used REDIM PRESERVE. So can't find out what is wrong.

Below are the funtions that i use for testing and the coding where I implement them. Code:

View Replies View Related

Determining URL

I working on a project where we will be hosting several websites on
the same server. These websites are built of a similar template and I
want to use the URL as a key to get settings from the database. Is
there a way to programatically get the website url in the
application_onstart.
I know I could hard code it in but that leaves things open to user
error.

View Replies View Related

Determining Whether An Integer Is Even Or Odd...

I am trying to reiterate through a for..next..loop using an integer (i). I would like to know when it is either a odd or an even number, insteading of using the simple version below:

if i = 1 or i=3 or i = 5 then
Response.Write "<tr " & strRowOdd & ">" & vbcrlf
else
Response.Write "<tr>" & vbcrlf
end if

Want to format table rows in a different style.

Any ideas?

View Replies View Related

Determining Password Length In ASP

how to determine password length using asp...or vbscript. can you include a simple program about password length or any site reference.

View Replies View Related

Determining If A Field In A Database Is Empty Using ASP

I am trying to determine if a field in a database is empty or not. The code I have is this....

(before this I have code that opens up the database, gets the data from the table. the var "content" holds the data if any from the database.)

if content = "" then
alert1 = "content field is empty"
else
alert1 = "content field contains text"
end if

This doesn't seem to work. I also tried...
if (content) then
alert1 = "content field is empty"
else
alert1 = "content field contains text"
end if

No luck yet. Any ideas?

View Replies View Related

Determining Command Prompt Error

When I run the following code, i get an error:

80070002 corresponding to line18: wshell.run (name).

When I copy & paste this command to prompt it works fine. Have tried other simple commands such as ping as they work fine. Any idea what error number could be or how I could output the error the prompt might be giving. Code:

View Replies View Related

Determining Client's Time Zone

I am attempting to solve a date/time formatting issue is
VBScript ASP pages. The ASP pages needs to determine what
time zone the client browser is in and tell a COM object.

The COM object then reads information from a proprietary
file and formats the date/time into the appropriate time
zone and returns the information to the ASP in an XML
form.

My question is how do I determine the client's time Zone
using VBScript in ASP pages?

View Replies View Related

Script For Determining Server Uptime

is there a script on telling how long a server's been up? I want to put that on my site.. along with other nifty details.

View Replies View Related

ASP + Access Question (Determining The Last Id Generated By Access)

I'm working on a site that inserts records into an Access database and Access assigns an auto-incrementing id for the record. How can I quickly figure out what id that was just created? I seem to remember there being a function for this....

View Replies View Related

Removing Certain Items

I have set up a page specifically for printing, however, I would like to be able to choose certain items on the page that are to be ignored by the printer. For example, the web version of the page may have instructions on how to print, although the version that is printed off does not.

View Replies View Related

Not Multiple Items

How can I get this to work?
<% if objRS2("System") <> "Scholastic" OR "Rolling Readers" OR "Reading Recovery" Then Response.Write "selected" End If%>

View Replies View Related

Retrive The Items

I have multiple list box added to the asp page using <select> tag
I have added items in the list box using recrdset from Education table
Education table={educationid, educationname}
User can choose more than items from the list box. These items gets
added in the user table in field
"edu" seprated by commas.
When User wants to edit his information ...i want that the items in the
list box should be automatically selected which are present in "edu"
field.

View Replies View Related

Items Retrieved

does anyone knows how i can layout items retrieved from db such as example from this online shop site . most items retrieeved from db such as Accesss are always in vertical layout.

View Replies View Related

Compare Two Items

I have this login that i created. On the sign in process i need to make sure
that no one has already signed up using that certain email or that unique
cnumber.

Ive tried this line:
Set objRS = verify.execute("SELECT id FROM logmein WHERE email='" & email &
"'") or ("', cnumber= '" & cnumber & "';")

than this:
Set objRS = verify.execute("SELECT id FROM logmein WHERE email='" & email &
"'", "' & or & '", "' cnumber= '" & cnumber & "';")

View Replies View Related

How To Add Items To A Basket

I am doing a wed site online shopping system for my school project, which requires some asp coding using vb script. I am new to asp and have no knowledge whatsoever on how to code what i need.
Could someone please provide me with help, or coding on how to add item details into a basket record, once the user clicks the add to basket link.

View Replies View Related

Add Items To Basket

I am doing a wed site online shopping system for my school project, which requires some asp coding using vb script. I am new to asp and have no knowledge whatsoever on how to code what i need.provide me with help, or coding on how to add item details into a basket record, once the user clicks the add to basket link.

View Replies View Related

Related Items

currently i have an online shopping website that display 12 categories of different items of up to 12 types. well my boss wants related items to be displayed in each of the different items . i am not sure how to start this. is there any special code for it. please advise.you may visit www.mellon.com.sg/shop to view .

View Replies View Related

Remove Items

Response.Write "<TD>" & "<a href= objRS.Delete>Remove</a>" & "</TD></TR>"

I have a basket which people add stuff to that they want to buy. i want a code that allows them to delete the item too. how the basket works is. thy choose a item from stock page and then it adds to a basket table.

View Replies View Related

Delete Items

I have a multi-dimensional array that I want to delete items from. To do this I display a form and the user clicks some tick boxes. Then on the delete page I check which tick boxes were ticked, say 2,4,7 and 8 (or whatever) and then rebuild the array minus records 2,4,7 and 8 and so on.

Sounds simple enough, but I'm having a real nightmare getting it to work. So my questions is how are others doing this, as my way is obviously very shoddy! I've been
looking for examples on the internet, but I've not managed to find one.

View Replies View Related

Add Items To A Basket

I am doing a wed site online shopping system for my school project, which requires some asp coding using vb script. I am new toasp and have no knowledge whatsoever on how to code what i need.

how to add item details into a basket record, once the user clicks the add to basket link.

View Replies View Related

News Items

This is my scenario. On the left of the screen, I have a list of news items, which are updated by the user and inserted into a database, and then they are dynamically displayed on screen from the database.
Now what I want is that if a user clicks a hyperlink from the left of the screen on a news item, the relevant text is displayed on the right. What I did up till now was that if I point on a news Item to the left of the screen, I know which item in the recordset it is since I created a counter.

View Replies View Related

Collection Items!

I would like to tap in to all the brilliant minds out there through the means of this question. Is it possible to have a function in asp that returns a collection of items?

If so could you please direct me to some code that may provide some insight to how its done. I've tried using my limited coding capacity but no success.

View Replies View Related

Fetch Only Particular Items

I'm trying to make a sorting feature for my site which will allow the user to click a drop down menu, click the item they only want displayed, click a button, and then the results will only display that particular item.

I also would like the drop down menu to auto-fill because there are about 20 different categories available. is there and easy way to do this?

View Replies View Related

PostbackUrl And Context.Items

I had previously posted this in inetserver.asp.components, I don't think that
was the right place... anyways, here is a repost:

We are currently using ASP.NET 2.0 to revamp one of our web applications. Let
me try to briefly explain how each page is laid out...

Usually within the page, there are 3 components... The header, the body, and
the footer. The header and footer are user controls created by one of our
developers, and contain things that all the pages in our web app should
contain. This is done to avoid inconsistencies (so you only change the header
once instead of changing it 20 times - once for each page).

The developer who created the header user control used Context.Items to
store some information. On my pages, I am trying to use PostbackUrl to post
form information from one page to another.

The problem I am having is this:
Both my pages call the header control. When I use PostbackUrl and
PreviousPage, I think the header control from the previous page gets "copied"
over to the page I am posting to. So in the second page, I get something like
a "dictionary keys have to be unique" exception. I think this is because the
Context.Items wasn't "cleared" from the PreviousPage since it was "copied"
over, so when the header user control tries to add the same key to
Context.Items in the second page, I get an exception.

I temporarily solved this problem by using Request.Form[...] rather than
PreviousPage.FindControl(...). I'm not sure if this is the right way to do
it, or if it will cause any problems.

So my question is: Can PostbackUrl and Context.Items work together? I guess
I could put some try/catch statements in the header control, but
unfortunately I don't have access to that file.

View Replies View Related

How Do I Filling Items In A Drop Down Box In Asp?

i want to fill a drop down box using data retrieved from access database.......

i alread know how to connect and retrieve data from the database but i am a lil unsure as to how i can populate the drop down list with the values retrieved.

View Replies View Related

Looping Through Forms Items

I have a from with four elements a checkbox and a textfield and two which are hidden. Jobid and userid.

The jobid is written once and the userid is These are dynamic items from the database.

What i want to do is loop through the items and then insert the new values back into the database via an update statement. Code:

View Replies View Related

Ordering Items Script

Does anyone know of a good script that already exists to do the following? Allow a user to enter a sort orderIf the order exists replace the existing one with the new and bump the old up or down accordinglyIf it doesn't exist add as newMake sure there are no gaps in numbering.

View Replies View Related

Displaying Multiple Items

I am trying to display records in the following way but i cant get it to work:

Table structure i am trying to achieve

User 1 User2 User3 User4
Car Model Carmodel Carmodel Carmodel
Car Spec Car Spec Car Spec Car spec

Once it has displayed 4 complete records with the data i want it to go to the next table row down and display the rest of the users ie... User 5 User6 User7

And eventuall i will display so many records per page but i will get to that later

View Replies View Related

Displaying Related Items

Access db, one table, 12 or so fields (id, item_name, category, manufacture, price, description etc.)... (ecomm site).

When displaying the details of a particular item I want to display "related items" below it. All I do now is pull info depending on the item id then display the size, dimensions, description, photo etc.

Lets say the item is a Large Blue Widget, i want to display related items... say "Large Widget Covers" or/and "Large Widget Accessories"... you get the idea... cross selling

So, I am looking for ideas on how to simplify the display of related items.

View Replies View Related

Checking For Duplicate Items

i am having problems with my code here and i am trying to figure out what i am doing wrong

i am adding items in shopping cart also i have written code to check if the same item with the same attribute exists then add 1 to the qty Code:

View Replies View Related

Determine Items In Array

how do i determine how many items are in an array? the following code creates an array of values each time a space is found in a name field. the problem is that sometimes names have middle initials and sometimes they do not. so i want to determine how many items exist in this array created bythe split BEFORE assigning values:

name_of_customer = Split(customer_name," ", -1, 1)

first_name = name_of_customer(0)
middle_initial = name_of_customer(1)

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved