HighTechTalks DotNet Forums  

Threading in a web-based app

Dotnet FAQs microsoft.public.dotnet.faqs


Discuss Threading in a web-based app in the Dotnet FAQs forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Lenny Pervin
 
Posts: n/a

Default Threading in a web-based app - 07-04-2003 , 11:27 PM






Hi,

Has anyone done threading programming in a ASP.NET. any issues with that?
For example how do you inform users when tread is completed after response
was sent to a browser? What if you want to display a progress bar in a
browser (it can be a WinForm object), can it be done?

Thanks



Reply With Quote
  #2  
Old   
Oisin Grehan
 
Posts: n/a

Default Re: Threading in a web-based app - 07-08-2003 , 05:23 AM






As much as Microsoft has tried to make ASP.NET look like a winforms
event-driven architecture, this is purely a facade. Underneath the hood, you
cannot escape the client-server, question-answer synchronous architecture
underneath. We are all bound by HTTP at the end of the day. So, short of
embedding a custom plugin hosted inside of IE that maintains a permanent
connection to the server, you can't really do this. You can give the an
illusion of it with some smart use of frames and client-side javascript, but
this is beyond the scope of a Usenet post. Keep your ASP.NET server-side
code synchronous and single threaded. Keep multithreaded asynchronous code
within WinForms. Of course, there are exceptions to this, but it's only a
guideline.

Hope this helps,

- Oisin

"Lenny Pervin" <lpervin (AT) comcast (DOT) net> wrote

Quote:
Hi,

Has anyone done threading programming in a ASP.NET. any issues with that?
For example how do you inform users when tread is completed after response
was sent to a browser? What if you want to display a progress bar in a
browser (it can be a WinForm object), can it be done?

Thanks





Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.