473,406 Members | 2,293 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

asynchronous asp.net

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?
Apr 3 '07 #1
3 1291
Back before AJAX, I would simply use an <IFRAMEto 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>


"CLEAR-RCIC" <CL*******@discussions.microsoft.comwrote in message
news:8F**********************************@microsof t.com...
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?

Apr 3 '07 #2
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.

"AMDRIT" wrote:
Back before AJAX, I would simply use an <IFRAMEto 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>


"CLEAR-RCIC" <CL*******@discussions.microsoft.comwrote in message
news:8F**********************************@microsof t.com...
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?


Apr 3 '07 #3
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.
"CLEAR-RCIC" <CL*******@discussions.microsoft.comwrote in message
news:F5**********************************@microsof t.com...
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.

"AMDRIT" wrote:
>Back before AJAX, I would simply use an <IFRAMEto 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>


"CLEAR-RCIC" <CL*******@discussions.microsoft.comwrote in message
news:8F**********************************@microso ft.com...
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?



Apr 3 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: ... | last post by:
Does anyone know a good tutorial on asynchronous programming in .net AsyncCallback And IASyncResult are driving me crazy. And the msdn documentation is not really helpful on this topic I...
1
by: Noel | last post by:
Hi, I am a tad confused about if there are any benefits from using asynchronous vs synchronous network communication. As my example, I have been writing a dns lookup stack with a network...
2
by: Leo | last post by:
Version 7 fixpack 9, aix 5.1 In our database we have a table that that has a dedicated bufferpool for the data, and another for indexes. Actually we have three of these combinations and they...
1
by: Natalia DeBow | last post by:
Hi, I am working on a Windows-based client-server application. I am involved in the development of the remote client modules. I am using asynchronous delegates to obtain information from...
1
by: Julian Hershel | last post by:
Reading about asynchronous programming (ms-help://MS.NETFrameworkSDK/cpguidenf/html/cpconasynchronousdesignpatterno verview.htm) I could not clarify some doubts. Hope you can help me. 1) Are...
3
by: usenetaccount | last post by:
In a newly created test app, to maximize client performance I tried to make two SOAP method calls in tandem (the soap methods execute some specified query), as each call includes a large amount of...
1
by: dba123 | last post by:
I need to perform Asynchronous Inserts using DAAB. So far I have a method which does an insert but how can I do this Asyncronously so that it does not affect the load on our public production...
0
by: Bishoy George | last post by:
Hi, I have a asp.net 2.0 web application. I want to implement the asynchronous model through http handler in web.config ...
4
by: Morgan Cheng | last post by:
Since ASP.NET 2.0, asynchronous web service client can be implemented with event-based pattern, instead of original BeginXXX/EndXXX pattern. However, I didn't find any material about event-based...
2
by: Nicolas Le Gland | last post by:
Hello everyone here. This is my first post in this newsgroup, I hope I won't be to much off-topic. Feel free to redirect me to any better group. I am getting strange timing issues when...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.