473,378 Members | 1,401 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,378 software developers and data experts.

Way for user to see progress on long running asp.net process

Okay I have a website where the user is going to hit a button to kick
off a process that is going to take a long amount of time.
Is there anyway without using AJAX, or possibly a windows control on a
page that connects to a webservice to show the user the progress of
this operation.
It seems almost a given that I must use either ajax or some kind of
control to do this.
Any suggestions would be greatly appreciated.
Thanks in advance

Ralph

Feb 3 '07 #1
2 2022
So far I have come up with two non Ajax/winforms controls solutions.
1) when user clicks button call both the server and the client events.
in the client event call another aspx that actually runs the page via
a popup.
Can tell user they must have popups enabled. Not writing this app for
the world.
In my server code simply call another page that uses javascript
timeout, to call its self every 10 to 30 seconds to read values put in
the session by the process and display status to user.

2) would be launching the process in a thread.
I have always shied away from threads in a web app.
Use them in winforms, windows services, just was never shure what the
behaviour of a thread would be in a web app. Does anyone have any
experience using threads in a web app.
On Feb 3, 4:50 pm, "Ralph" <ralph...@gmail.comwrote:
Okay I have a website where the user is going to hit a button to kick
off a process that is going to take a long amount of time.
Is there anyway without using AJAX, or possibly a windows control on a
page that connects to a webservice to show the user the progress of
this operation.
It seems almost a given that I must use either ajax or some kind of
control to do this.
Any suggestions would be greatly appreciated.
Thanks in advance

Ralph

Feb 3 '07 #2
Ralph,
First off, this isn't a C# Language newsgroup question, its an ASP.NET
newsgroup question, and really belongs in that group.

There are literally dozens of approaches to this from using an intermediate
"progress page" (here is one :
http://www.eggheadcafe.com/articles/20050108.asp ) to using background
polling on a secondary thread in Global.asax. Search around on "ASP.NET
progress" and you'l find plenty more ideas.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Ralph" wrote:
Okay I have a website where the user is going to hit a button to kick
off a process that is going to take a long amount of time.
Is there anyway without using AJAX, or possibly a windows control on a
page that connects to a webservice to show the user the progress of
this operation.
It seems almost a given that I must use either ajax or some kind of
control to do this.
Any suggestions would be greatly appreciated.
Thanks in advance

Ralph

Feb 3 '07 #3

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

Similar topics

4
by: aj | last post by:
Alan, you can achieve this by using XMLHttp Async functionality in a javascript file. Create an aspx page in which execute long running SQL query, then do an XMLhttp post to that page from a js...
3
by: Tim::.. | last post by:
Can someone please, please tell me how I get a progress bar to work with a binary file upload! I have the following code that uploads files into an SQL Database using a Stored Procedure but I...
7
by: Pepi Tonas | last post by:
I have a form that takes some time to load because it has to populate some Data. I was trying to display a form on top of it with an activity bar so that user can see that something's going on. ...
5
by: B-Dog | last post by:
I'm trying to build a custom progress bar that will run as some subs are running in the background but when I open the custom form with the progress bar on it using the showdialog, none of the subs...
13
by: Samuel R. Neff | last post by:
I want to make my app repaint and show a wait cursor during a long running process but not actually respond to user events. What's the best way to implement this? If I just put the process on...
8
by: pamelafluente | last post by:
I am reposting hoping better luck :) I can't achieve this simple thing: I have an animated gif in an image control (ImageProgress1). The image visibility is set to false. I want that when the...
9
by: esakal | last post by:
Hello, I'm programming an application based on CAB infrastructure in the client side (c# .net 2005) Since my application must be sequencally, i wrote all the code in the UI thread. my...
1
by: Bob | last post by:
Hi, I am having trouble seeing how this bolts together. The UI starts a process which involves a long running database update. All Database activity is handled by a class called DT. DT has a...
3
by: Tim Satterwhite | last post by:
Hi All, I think this is a thorny problem, and I'm hoping you can help. I've not found this exact issue described anywhere yet. I have a stored procedure that calls BULK INSERT on a set of...
1
by: Ralph | last post by:
Okay I have a website where the user is going to hit a button to kick off a process that is going to take a long amount of time. Is there anyway without using AJAX, or possibly a windows control on...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.