473,587 Members | 2,508 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET displaying multiple server side events to browser

Hi

I have a usercontrol which contains ajax toolkit controls which I am using
in a SharePoint siite. When the user clicks one of the buttons on the page
it fires a series of events server side (creates a new project in project
server, creates an new SharePoint site ... ) each of which take quite some
time. I would like to display the successful completion of each event in the
control to so the user can see what progress has been made.

I am struggling to understand how I can engineer the page to perform each
task in turn, post the page back after each task has occurred (to update the
UI that the task has been done) then fire the next server side event. It's
easy to update a control with the status changes but the updated control is
only displayed to the user when all of the server side events have completed.

Can anyone help me with this?
Regards

Andrew

Jul 10 '08 #1
2 1203
K
many options:

1) poll the server for updates
2) open an xmlhttprequest and keep an open connection until some event
occurs. you can suspend and revive the calling thread on your server side
3) use a java/flash/usercontrol/activex control on your page capable of
grabbing these events from your server

I'd take option 2
"Andrew Stokes" <An**********@d iscussions.micr osoft.comwrote in message
news:8C******** *************** ***********@mic rosoft.com...
Hi

I have a usercontrol which contains ajax toolkit controls which I am using
in a SharePoint siite. When the user clicks one of the buttons on the page
it fires a series of events server side (creates a new project in project
server, creates an new SharePoint site ... ) each of which take quite some
time. I would like to display the successful completion of each event in
the
control to so the user can see what progress has been made.

I am struggling to understand how I can engineer the page to perform each
task in turn, post the page back after each task has occurred (to update
the
UI that the task has been done) then fire the next server side event. It's
easy to update a control with the status changes but the updated control
is
only displayed to the user when all of the server side events have
completed.

Can anyone help me with this?
Regards

Andrew

Jul 10 '08 #2
"K" <so*****@micros oft.comwrote in message
news:ee******** ******@TK2MSFTN GP05.phx.gbl...
many options:

1) poll the server for updates
2) open an xmlhttprequest and keep an open connection until some event
occurs. you can suspend and revive the calling thread on your server side
3) use a java/flash/usercontrol/activex control on your page capable of
grabbing these events from your server

I'd take option 2
Would stating a new thread (with a callback) for each step work? The call
back changes the status of a text box, which is inside an update panel. Or
would the page simply run all the threads in one post back?

Marc
Jul 10 '08 #3

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

Similar topics

2
4327
by: RAJ | last post by:
In our multi-tier application, we have several ASP.NET user controls which will update the same data source provided by middle tier logic. In this particular scenario we have one user control displaying the contents of the data source, whilst another control updates the datasource via a command buttons implementation of 'Click', an event...
22
2161
by: Mr Newbie | last post by:
I was thinking about developing a workflow application yesterday and was musing over the different approaches than one could take in restricting specific actions on a ticket( Form ) at any said stage. One approach I have used on other systems is to prevent the action buttons appearing. For example, if one did not have the Role of...
6
5793
by: Coleen | last post by:
Hi all :-) I need to redirect to multiple pages on click of a transmit button, without redisplaying each page. This redirection is to capture session variables that are created on each page and pass them to the main page to be displayed. We are actually NOT using session variables, but storing the values in a temporary table. The problem...
10
2029
by: Ben | last post by:
Hi, I made an application in classic asp (reservation of books and video stuffs for students) and want to migrate to asp.net. The user has to chose a date, then pushung on a submit button. The whole day is then displayed in cels of a table. The user has then to click in a cel representing a hour of the day and an object (book ..), and...
17
13173
by: petermichaux | last post by:
Hi, Is it possible for an AJAX request to be left open for multiple responses? This could avoid repetitive polling of the server. Thanks, Peter
3
5813
by: CD | last post by:
An application is logging faxes sent in SQL2000 image column type. I have found code on the net but what it is doing is prompting to save to local which is fine for single page image. Not good for multiple page faxes. I have not been able to locate an example to load in the browser or how to handle multiple image in the one column. 1)...
3
2039
by: Mike | last post by:
Hi, I'm wondering if I can do this with ASP.NET?
1
4187
by: littlealex | last post by:
IE6 not displaying text correctly - IE 7 & Firefox 3 are fine! Need some help with this as fairly new to CSS! In IE6 the text for the following page doesn't display properly - rather than being aligned to the top, along with the slideshow and link buttons, you have to scroll down to see the text - how can I make IE6 display correctly? ...
2
1445
by: =?Utf-8?B?QW5kcmV3IFN0b2tlcw==?= | last post by:
Hi I have a usercontrol which contains ajax toolkit controls which I am using in a SharePoint siite. When the user clicks one of the buttons on the page it fires a series of events server side (creates a new project in project server, creates an new SharePoint site ... ) each of which take quite some time. I would like to display the...
0
7923
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8349
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7974
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8221
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5719
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5395
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3845
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3882
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1455
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.