asynchronous asp.net

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

We have an asp.net application that will also use MSMQ. When a client makes
a request, we want to check several databases and put each response in MSMQ.
We don't want the client to wait for all responses to come back. We were
wondering if there is some component (maybe activex) that will sit on the
client and listen for call backs from the the server. We are also
concidering using AJAX to poll MSMQ every 5 seconds and show any new
responses. Has anyone had any experience with this?
 
Back before AJAX, I would simply use an <IFRAME> to make calls back to the
server. Perhaps you can do the same?

Main Page
<html>
<iframe id="tester" />
<script>
tester.source = tester.aspx; //html page is with test

function showresults()
{
//use this to display results once your process is complete
}

//Put in time out logic, or ignore logic for repeated calls.

</script>
<html>

tester.aspx

<html>
<%
if session("taskcomplete") then
response.write("<script>showresults();</script>")
else
//put in logic to refresh the source every so often
end if
%>
</html>
 
AMDRIT,

Thanks for the suggestion. I've used IFRAMES like this in the past but
thought there might be a newer solution available that I hadn't heard about.
Seems like someone would have created a control (ActiveX or AJAX based) that
would poll a message queue by now.
 
That is the whole goal of MS's implementation of AJAX in ATLAS. I just know
that there are still security concerns in ATLAS and AJAX in general, so I
can't get behind it just yet.
 
Back
Top