|
-
Mar 25th, 2003, 08:26 AM
#1
Thread Starter
Lively Member
Keep the user on a page that take long time to process.
Hi,
I must build a page that will enable users to check the status of some accounts online. The current status can be retrieved in minimum 15-20 sec. I need some Ideeas to make the page showing something during the wait time. All the processing is done by a stored procedure. I would like to do an asyncronous call to the stored procedure (if it is possible). How can I keep the user on the page, to do not go back and hit again.
thank you,
svatasoiu
-
Mar 25th, 2003, 12:28 PM
#2
Frenzied Member
You can use threads. Spin up a second thread to do the processing, then when its done redirect the user to other page.
Dont gain the world and lose your soul
-
Mar 26th, 2003, 08:14 AM
#3
Thread Starter
Lively Member
Hi,
thank you for your answer.
Do you know any place where I can see some examples.
Until now I did not worked with treads.
thank you,
svatasoiu
-
Mar 26th, 2003, 01:42 PM
#4
PowerPoster
Do a search on www.google.com for VB.Net multithreading, or C# multithreading. You will get the info you need.
-
Mar 26th, 2003, 02:24 PM
#5
Frenzied Member
PHP Code:
protected void btnProcess_Click(Object o, EventArgs e)
{
// Create the thread object, passing in the DoLongProcessing method
// using a ThreadStart delegate.
Thread processingThread = new Thread(new ThreadStart(this.DoLongProcessing));
//Start the thread
processingThread.Start();
}
//Function to do processing
void DoLongProcessing()
{
//Do processing here...
//After processing done
//redirect user to accounts page.
Response.Redirect("Accounts.aspx");
}
Hope that helped.
Dont gain the world and lose your soul
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|