Re: Updating a control with data on server event.



Hi again,
I've read the articles, and they are indeed very helpful, but I still have a
few gaps that I don't know how to fill. I will describe the situation in more
detail: my control may be one of several controls on a page. The user can use
this control to poll for some data. I was planning to use a timer object. I
want the control fields to be updated with data when data is available. I
don't want the user to see a "wait..." page, I want the user to continue
using the same page.
So I have the asynchroneous opeartion running, and I can have a data store
that would tell me whether data is already available for my session, but I
still don't have an idea how to poll that data store.
Please help...
Almog.

"Steven Cheng[MSFT]" wrote:

Hi Almog,

As for the "updating control ..." question you mentioned, I think it is a
typical asynchronous server-side processing and update client case, as John
has suggested, generally, you can let the server-side keep processing the
task(in a background thread) and the page will return the client
synchronously. After that, in client page, you can use script to constantly
post to the server and query the processing status, if finished, post back
the page and display final result.

Here are some former thread in newsgroup and tech articles in MSDN library
that discussing on similar topic:

http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/brow
se_thread/thread/44302efa18ea9567/1619ca7b4000d2f8

#Reporting Task Progress With ASP.NET 2.0
http://msdn.microsoft.com/msdnmag/issues/06/09/CuttingEdge/default.aspx

#How To: Submit and Poll for Long-Running Tasks
http://msdn2.microsoft.com/en-us/library/ms979200.aspx

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================



This posting is provided "AS IS" with no warranties, and confers no rights.











.



Relevant Pages

  • Re: Web Form/SQL Table Structure
    ... So the Repeater tool output would look something like this: ... How would I call the correct control for the question (DropDownList, ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ContextMenuStrip and PreviewKeyDown
    ... Win32 control message model and input model. ... System.Windows.Forms.ContextMenuStrip class to "MyContextMenuStrip" class ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: ObjectList Data-Binding to a List
    ... All I want is a control that allows me to manually build HTML ... Thanks for getting back to me about all these posts. ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: trouble decoding managed call stack causing kernel complaint
    ... verbose symbol loading. ... you may use spy++ to find out that control. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.win32.programmer.kernel)
  • Re: DropDownList Input
    ... The control will then be added to the toolbox. ... "Nathan Sokalski" wrote: ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)

Loading