Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: Re: multi threading


Message #1 by "Seltzer, Matt" <Matt.Seltzer@E...> on Mon, 2 Dec 2002 11:13:58 -0500
Hi, SUndar,
  Just came back from an ASP.NET enterprise-level training class.  It was
suggested that the Page_Prerender event be used to make changes to the UI in
an asynchronous call from an .aspx page.

Regards,

Matt

-----Original Message-----
From: sundar srinivasan [mailto:ssrinivasan3@n...]
Sent: Friday, December 06, 2002 10:40 AM
To: ASPX_Professional
Subject: [aspx_professional] Re: multi threading


> Hi, Sean,
  I hear ya.  My other concern is that spawning a new thread from within 
the
.aspx page causes other threads to get blocked until the async call is
completed.

Regards,

Matt

Hi Sean & Matt,

Sorry, I just got back from a vacation.

I spawned two threads from my aspx, each of them to return
a dataset in the event handler. I actually create threads in a business 
layer object which in turn threads a 'GetDataSet'  method on a generic 
data-layer object. Obviously, if you thread, thread all the way (otherwise 
one layer becomes a bottle-neck) and that's what I did. The data-layer 
raises an event passing a dataset back to the business layer which in turn 
raises an event to pass the dataset back to the aspx.
The results were inconsistent though. It worked in one situation (meaning, 
I got a dataset back in the aspx and populated the drop-down)
and did not get a dataset back another time for the same data. I don't 
know why..

Regards,

Sundar

This e-mail including any attachments is confidential and may be legally privileged. If you have received it in error please advise
the sender immediately by return email and then delete it from your system. The unauthorized use, distribution, copying or
alteration of this email is strictly forbidden. 

This email is from a unit or subsidiary of EMI Recorded Music, North America

  Return to Index