473,386 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

asp.net automatically perform action based on a date

CoX
I am currently doing an assignment for my scripting module at
univercity.
The project is to create an auction site (I've just based mine on
ebay) in asp.net using vb.

One of the "extra mark" sections is that the auctions should
automatically end
on a certain date and time.

Is there a way to do this other than having a web page permenantly
open, that refreshes itself and sets the bid status to closed???

Cheers

CoX
Nov 18 '05 #1
3 1248
well auction sites have their own engines... and they are responsible for
marking the auctions as closed.
having a permanent page open which keeps refreshing isnt the most ideal
solution....

write a seperate app which will monitor the currently live auctions and
their closures... and use that app (not a web app) to mark them as closed

hth

--
Regards,

HD

"CoX" <ni***@calderglen.net> wrote in message
news:7c**************************@posting.google.c om...
I am currently doing an assignment for my scripting module at
univercity.
The project is to create an auction site (I've just based mine on
ebay) in asp.net using vb.

One of the "extra mark" sections is that the auctions should
automatically end
on a certain date and time.

Is there a way to do this other than having a web page permenantly
open, that refreshes itself and sets the bid status to closed???

Cheers

CoX

Nov 18 '05 #2
There are two ways to do this that are relativly easy. One is to create a
Windows Service that monitors the auctions and ends them on a specific time.
Another method is to use Triggers or timed events on the SQL side to end an
auction either way will help you out.

Away to simulate this is to add a end date to the database and if somebody
tries to access the auction after that date just throw and error or display
that the auction has been ended. But this isn't good if you need to send a
response to somebody on the end date of the auction.

"CoX" <ni***@calderglen.net> wrote in message
news:7c**************************@posting.google.c om...
I am currently doing an assignment for my scripting module at
univercity.
The project is to create an auction site (I've just based mine on
ebay) in asp.net using vb.

One of the "extra mark" sections is that the auctions should
automatically end
on a certain date and time.

Is there a way to do this other than having a web page permenantly
open, that refreshes itself and sets the bid status to closed???

Cheers

CoX

Nov 18 '05 #3
One more suggestion. You can always use the Cache method where when the
cache times out a set event gets used. This happens in the back ground and
nobody has to access the page so this may work for you. Such as cache a
string with the id in it and when the cache times out, which you will set as
the auction end date the event gets launched and in the event you do what
ever you need to do. This is memory costly but for a school project it will
accomplish the goal with minimal programming.
"CoX" <ni***@calderglen.net> wrote in message
news:7c**************************@posting.google.c om...
I am currently doing an assignment for my scripting module at
univercity.
The project is to create an auction site (I've just based mine on
ebay) in asp.net using vb.

One of the "extra mark" sections is that the auctions should
automatically end
on a certain date and time.

Is there a way to do this other than having a web page permenantly
open, that refreshes itself and sets the bid status to closed???

Cheers

CoX

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: zlatko | last post by:
There is a form in an Access Project (.adp, Access front end with SQL Server) for entering data into a table for temporary storing. Then, by clicking a botton, several action stored procedures...
8
by: netsurfer | last post by:
Hi: Have a question on making the date automatically filled in by what the user enters in by the date at the top. The date entered at the top would most likely be on a Wednesday then I need...
4
by: Lee Chapman | last post by:
Hi, Can anyone tell me why in the code below, the call to ClearChildViewState() has no effect? To paraphrase the code: I'm using view state. I have a textbox and a submit button (and a label...
7
by: | last post by:
Hello, I would like to do the following from a asp.net button click: <form method="POST" action="https://www.1234.com/trans_center/gateway/direct.cgi"> <input type="hidden" name="Merchant"...
0
by: neoteny2 | last post by:
I need MS Access to automatically create reports/subreports based on specific criteria. I am building a database in Access 2003 with different locations/sites. I have the "sites" table created...
3
by: Stephen V | last post by:
Can anyone help me out with this problem. I would like to redirect/ go to another php page when my SQL insertion is done and also send a variable at the same time. the idea is, to come on my...
10
by: RoadRunner | last post by:
Hi, I have a employee vacation database that has a vacation table that has the employee name, pay week and date of vacation. I have another lookup table with pay week code and date range for the...
30
by: Charles Law | last post by:
Here's one that should probably have the sub-heading "I'm sure I asked this once before, but ...". Two users are both looking at the same data, from a database. One user changes the data and...
10
by: Benton | last post by:
Hi there, I have a UserControl with a couple of textboxes and a couple of buttons ("Save" and "Cancel"). The Click event for this buttons is in the UserControl's codebehind of course, so here's...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.