473,509 Members | 2,950 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do you automate a process?

i am creating an asp.net auction website

how do i create a process that will "end" the auction when it's time

obviously i don't want to sit at a browser and keep refreshing the page

i'm not sure if i can install an application on the server too (not
allowed?)

thanks...
Nov 3 '07 #1
4 1186
Why do you have to do any form of polling - it could be ended when the next
person who requests anything to do with any auction triggers an end flag to
the previous auction if end time has passed.

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog

"Cirene" <te**@test.comwrote in message
news:ue**************@TK2MSFTNGP06.phx.gbl...
>i am creating an asp.net auction website

how do i create a process that will "end" the auction when it's time

obviously i don't want to sit at a browser and keep refreshing the page

i'm not sure if i can install an application on the server too (not
allowed?)

thanks...

Nov 3 '07 #2
"Cirene" <te**@test.comwrote in message
news:ue**************@TK2MSFTNGP06.phx.gbl...
how do i create a process that will "end" the auction when it's time
I'm not sure I understand your problem...

/* show the active acutions */
SELECT * FROM MyAuctions
WHERE EndDate getdate()

/* show the ended acutions */
SELECT * FROM MyAuctions
WHERE EndDate < getdate()

SELECT EndDate FROM MyAuction
WHERE AuctionID = 12345

if (Convert.ToDateTime(<EndDate>) < DateTime.Now)
{
// tell the user the auction has ended
return;
}

etc
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Nov 3 '07 #3
I was thinking of doing it this way, but these are exclusive type auctions
with not much traffic to the site. I was hoping that at the exact time it
ends to email me a notification, even if no one visits the site. But, this
is a good solution. Thanks John!
"John Timney (MVP)" <xy******@timney.eclipse.co.ukwrote in message
news:9I******************************@eclipse.net. uk...
Why do you have to do any form of polling - it could be ended when the
next person who requests anything to do with any auction triggers an end
flag to the previous auction if end time has passed.

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog

"Cirene" <te**@test.comwrote in message
news:ue**************@TK2MSFTNGP06.phx.gbl...
>>i am creating an asp.net auction website

how do i create a process that will "end" the auction when it's time

obviously i don't want to sit at a browser and keep refreshing the page

i'm not sure if i can install an application on the server too (not
allowed?)

thanks...


Nov 3 '07 #4
Thanks.

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:ef*************@TK2MSFTNGP03.phx.gbl...
"Cirene" <te**@test.comwrote in message
news:ue**************@TK2MSFTNGP06.phx.gbl...
>how do i create a process that will "end" the auction when it's time

I'm not sure I understand your problem...

/* show the active acutions */
SELECT * FROM MyAuctions
WHERE EndDate getdate()

/* show the ended acutions */
SELECT * FROM MyAuctions
WHERE EndDate < getdate()

SELECT EndDate FROM MyAuction
WHERE AuctionID = 12345

if (Convert.ToDateTime(<EndDate>) < DateTime.Now)
{
// tell the user the auction has ended
return;
}

etc
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Nov 3 '07 #5

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

Similar topics

3
474
by: Brad Burke | last post by:
From a windows .Net app, I need to 1) check if MSAccess is already open to a certain Access application. If so, then open a form and find a certain record. 2) If not open, then open MSAccess and...
1
4936
by: Mark | last post by:
Hi all, I have a Access 2002 FE/BE scenario where the BE is stored on a network drive. Due to the amount of importing/deleting, the database bloats quite a lot. UP until now, I have been booting...
2
2699
by: Phil Latio | last post by:
We have despatch process which kicks out picking information into text files at hourly intervals. The text files are named sequentially by process; 'ABC.txt', 'ABC01.txt', 'ABC02.txt' for one...
5
3828
by: James Johnson | last post by:
Dear C#dex, You can automate a POST and interrogate the resulting HTTP stream using code such as: HttpWebRequest hwreq = (HttpWebRequest)WebRequest.Create(url); hwreq.Method = "POST";...
2
3648
by: Raed Sawalha | last post by:
is it possible to automate GAC and REGASM process byt code? i need to do the following procedure using code ,is it possbile? 1. gacutil - i assemblyname 2. regasm assmebname /tlb:name/codebase
1
938
by: Mary | last post by:
Hi all; I have a client/server application that are built in VC .NET. The source codes are versioned in Perforce. I need automate the process to: Setup environment variable, Check out latest...
1
1450
by: branden.hughes | last post by:
I'm trying to automate this for a mass-processing of GDC number information (scrapping). I've tried everything I can think of and every example I've come across to no avail. The root site is:...
0
1037
by: satish | last post by:
Hi , I am automating internet. I am using mshtml and shdocvw.ddl for automations Can anyone tell me how to automate selection of items from list the e.g of html source is as given <select...
4
1940
by: Chris | last post by:
I have a web page that I want to automate a post to. I would use the web request. However the post involves a file upload. What would be the best way of doing this? Regards, Chris.
3
1405
by: mariner92689 | last post by:
Hi all, I am very poor at scripting. My goal is to automate a process that I often have to stand by the computer and wait for each step to finish in order for me to manually proceed to the next...
0
7136
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
7344
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,...
1
7069
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7505
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5652
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5060
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4730
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1570
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.