Real-time notification in ASP.NET

Discussion in 'ASP .Net Web Services' started by KIAMagentis, Sep 16, 2004.

  1. KIAMagentis

    KIAMagentis Guest

    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
     
    KIAMagentis, Sep 16, 2004
    #1
    1. Advertising

  2. KIAMagentis

    stephg Guest

    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)
     
    stephg, Sep 18, 2004
    #2
    1. Advertising

  3. KIAMagentis

    KIAMagentis Guest

    Thank you very much.
     
    KIAMagentis, Sep 19, 2004
    #3
  4. KIAMagentis

    Trapulo Guest

    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
     
    Trapulo, Sep 27, 2004
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. senthil
    Replies:
    5
    Views:
    1,391
    senthil
    Jan 24, 2004
  2. jude
    Replies:
    7
    Views:
    953
    Brock Allen
    Mar 15, 2005
  3. Curious Trigger
    Replies:
    2
    Views:
    1,817
    Curious Trigger
    Sep 9, 2006
  4. flamesrock
    Replies:
    8
    Views:
    477
    Hendrik van Rooyen
    Nov 24, 2006
  5. Brian

    Real time converted to Unix time

    Brian, Aug 29, 2003, in forum: Perl Misc
    Replies:
    1
    Views:
    387
    James Willmore
    Aug 29, 2003
Loading...

Share This Page