Real-time notification in ASP.NET

K

KIAMagentis

Hello!

I wonder, if there could be a way for a client of ASP.NET application
to recieve a message from a server. For example, let's consider we
have a job assignment application. The dispatcher assigns a job for a
particular executer. How to notify executor that he or she has a new
job assigned?
In other words, is there a way to make a real-time notification of new
jobs for a client in a ASP.NET application or by means of ASP.NET
web-service?

The need of such notification occurs very often in distributed
application, so it would be very important for me to choose
appropriate technology to use. In one hand, ASP.NET allows the
application to be platform-independend, but I can't find the way to
perform the interested functionality. In other hand, .NET Remoting
allows to make such things more clearly, but applications become
Windows-dependend, more complex to install and to use.

I would greatly appriciate any advises for the problem I've described.
Thanks
 
S

stephg

I have a similar scenario in my application where I have implemented internal
instant messaging.
In my main aspx page I have an iFrame implemented that is being refreshed
every 10 seconds.
This iFrame calls a webservice to check whether there are new messages. If
yes, a pop-up window will display notifying the user.
Code extract for implementig the iFrame in master.aspx looks like:
<iframe src="CheckMessage.aspx" width="100%" height="200" scrolling="auto"
frameborder="no">
</iframe>
CheckMessage.aspx looks like:
<HEAD>
<meta http-equiv="Refresh" content="10">
</HEAD>
and in the code behind you call the webservice in pageload section and
display the pop-up via:
Dim message as String = "There is a new message for you"
Dim messText As String = "<script language=" & Chr(39) & "JavaScript" &
Chr(39) & ">alert(" & Chr(34) & message & Chr(34) & ");</script>"
Response.Write(messText)
 
T

Trapulo

HTTP is stateless, so I think yo can't

With remoting you can make this. Installation is easy and you have more
choise (IIS is not required), however the two solutions have different pro
and contro.
bye
 

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,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top