Notifying Client Browser from Server in ASP.NET

Discussion in 'ASP .Net' started by satyamguha2006@gmail.com, Sep 24, 2007.

  1. Guest

    Is there any way to notify the Client Browser when something changes
    at the Server?
    , Sep 24, 2007
    #1
    1. Advertising

  2. <> wrote in message
    news:...

    > Is there any way to notify the Client Browser when something changes
    > at the Server?


    When something changes...? Like what...?


    --
    Mark Rae
    ASP.NET MVP
    http://www.markrae.net
    Mark Rae [MVP], Sep 24, 2007
    #2
    1. Advertising

  3. bruce barker Guest

    there are a couple ways:

    1) simple - poll the server with ajax
    2) using iframes, and server push (really client pull). here you turn
    off buffering and keep sending javascript commands and a flush. to keep
    from burning up too much memory, you need to close and reopen the request.
    3) use a java applet or active/x to hold a connection open and fire an
    event.


    -- bruce (sqlwork.com)

    wrote:
    > Is there any way to notify the Client Browser when something changes
    > at the Server?
    >
    bruce barker, Sep 25, 2007
    #3
  4. Nope - sorry.

    Like Bruce suggested, your best bet is to use AJAX. You can
    periodically send a background web request, without refreshing the
    main page, to get data from the server - maybe by calling a web
    service or some other page.

    This is how GMail and other web-based email clients work, they poll
    the server every few seconds to see if new mail is available.

    Chris

    On Sep 25, 8:37 am, wrote:
    > Is there any way to notify the Client Browser when something changes
    > at the Server?
    Chris Fulstow, Sep 25, 2007
    #4
  5. Steve C. Orr [MCSD, MVP, CSM, ASP Insider], Sep 25, 2007
    #5
    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. Eliyahu Goldin

    Re: Notifying clients in asp.net

    Eliyahu Goldin, Aug 4, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    384
    Eliyahu Goldin
    Aug 4, 2004
  2. Steve Caliendo

    Notifying client before session timeout

    Steve Caliendo, Oct 5, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    438
    William F. Robertson, Jr.
    Oct 5, 2004
  3. Steve Caliendo

    Notifying client before timeout

    Steve Caliendo, Oct 13, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    316
    =?Utf-8?B?S2VuIENveCBbTWljcm9zb2Z0IE1WUF0=?=
    Oct 13, 2004
  4. Taki
    Replies:
    0
    Views:
    370
  5. Ken Fine
    Replies:
    6
    Views:
    345
    Jialiang Ge [MSFT]
    Mar 3, 2008
Loading...

Share This Page