problem with multithreading and Web services method invocation

A

abhra.haldar

Hi:

I have an ASP.NET page which makes a synchronous Web services method
call. At the same time, however, I wanted it to load another page as an
iFrame (i've also tried as a javascript popup window) - this second
page is responsible for polling a DB and continually updating its text
box display.

The problem is that once the Web service call is initiated, the second
page becomes unresponsive exactly until the call is completed, when it
resumes. I'm baffled as to why this second page's request should have
anything to do with the first one's Web service request. I've tried to
encapsulate the time-consuming DB queries of the second page into a
separate thread and this works great (I tested it by printing a
timestamp to a file), but I also need a way of updating the display in
real-time while the Web services call is going through. Are there any
ideas as to how I can accomplish this?

- adh
 
B

bruce barker \(sqlwork.com\)

your second window is blocked because asp.net serializes request by session.
one one request per session runs at a time. you shoud change you logic.

client -- request long running process -->

server starts process on background thread
<-- server returns a page display status, with a meta refresh

client displays status page
sends refresh request -->

server check if procees is done
if not done
<-- send poll page
else
<-- send results


-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top