how to do a server push

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default how to do a server push

    At a certain page in my web app I'm entering users into a Queue for
    processing, how can I do a server push (like the expedia 'searching for
    flights' screen) that can display a progress page then update when the
    users.

    Note: I'm not interested in client refresh.

    Thanks,

    Stan


    DesignerX Guest

  2. Similar Questions and Discussions

    1. Blazeds server push and multiple flex instances
      I am working on a project to push data from a server to a flex chart drawing application. However each chart needs to run as its own page. Up til...
    2. How to push realtime data from SQL Server
      Hello, I am looking for the best way to approach the following situation ... 1) how to connect 2) what I will need to maintain "realtime"...
    3. Can you push XML data with Media Server 2
      Can you use Media Server 2 to PUSH just regular data to a SWF say like XML data sent every second? THX Kevin
    4. Server PUSH to client
      We have an internal asp.net application for orders/manufacturing information. Presently we have set the META Refresh tag on the affected pages set...
    5. Server push
      Hi all, I have developed a PHP-based website where a "planner" user can make up schedules of activities to be performed, storing them into MySQL...
  3. #2

    Default Re: how to do a server push

    if you what to get data from server with out refresh
    you can create web service and call from javascript

    example
    you can dounload webservice.htc from microsoft


    <script language="javascript">
    <!--
    function init()
    {
    service1.useService("../Utill/SendEmailRemotly.asmx?WSDL","Send_Email");
    }
    //________
    function getResultFromWebService(result){
    alert(result.value);
    }
    //________
    function GetId(sender, args){
    var invalue=args.Value;
    var funid;
    funid =
    service1.Send_Email.callService(getResultFromWebSe rvice,"SendEmail",invalue)
    args.IsValid = true;
    }
    //-->
    </script>
    </HEAD>
    <body onload="init()">
    <div id="service1" style="BEHAVIOR:url(webservice.htc)"></div>
    <form id="Form1" method="post" runat="server">
    <asp:TextBox ID="txtEmailAddress" Runat="server"></asp:TextBox>&nbsp;
    <asp:CustomValidator id="CV1" runat="server"
    ControlToValidate="txtEmailAddress"
    ClientValidationFunction="GetId"></asp:CustomValidator>&nbsp;
    <input type="text">
    </form>
    </body>
    </HTML>

    "DesignerX" <designerx2@yahoo.com> wrote in message
    news:zvadnXILdKVNsaSiRTvUpQ@giganews.com...
    > At a certain page in my web app I'm entering users into a Queue for
    > processing, how can I do a server push (like the expedia 'searching for
    > flights' screen) that can display a progress page then update when the
    > users.
    >
    > Note: I'm not interested in client refresh.
    >
    > Thanks,
    >
    > Stan
    >
    >

    Alex K Guest

  4. #3

    Default Re: how to do a server push

    Justin is correct.
    The link he supplied shows a technique very similar to how Expedia works
    (BTW, it uses a client refresh,) so that's likely what you'll want to
    explore.

    Another option is that you could periodocially call a web service from your
    client side JScript to see if the processing is complete. You'd need a
    client side timer for this. You'll also likely need to use the web service
    behavior. (WebService.htc) This technique works with IE only.
    Here's more details:
    [url]http://msdn.microsoft.com/library/default.asp?url=/workshop/author/behaviors/overview.asp[/url]

    [url]http://msdn.microsoft.com/downloads/samples/internet/default.asp?url=/downloads/samples/internet/behaviors/library/webservice/default.asp[/url]

    --
    I hope this helps,
    Steve C. Orr, MCSD
    [url]http://Steve.Orr.net[/url]
    Developer for Hire


    "DesignerX" <designerx2@yahoo.com> wrote in message
    news:zvadnXILdKVNsaSiRTvUpQ@giganews.com...
    > At a certain page in my web app I'm entering users into a Queue for
    > processing, how can I do a server push (like the expedia 'searching for
    > flights' screen) that can display a progress page then update when the
    > users.
    >
    > Note: I'm not interested in client refresh.
    >
    > Thanks,
    >
    > Stan
    >
    >

    Steve C. Orr, MCSD Guest

  5. #4

    Default Re: how to do a server push

    Very much appreciated! looks like a good example.

    Thank You.

    Stan


    "S. Justin Gengo" <sjgengo@aboutfortunate.com> wrote in message
    news:uZ3V2DQYDHA.4040@tk2msftngp13.phx.gbl...
    > Stan,
    >
    > The only way to do a true server push is to install your own component on
    > the client. To do this your users will have to agree to the download.
    >
    > If you do decide to use a meta refresh here is a great article:
    >
    > Boost Web Performance with Multithreading
    > [url]http://www.ftponline.com/vsm/2002_11/magazine/features/chester/[/url]
    >
    > It shows how to spawn a thread to perform things like a database lookup
    and
    > how to use a meta refresh tag on the client to poll the server for when
    the
    > thread is finished.
    >
    > The way http is set up (stateless) inherently keeps it from doing what you
    > wish without some type of plugin for the browser.
    >
    > Sincerely,
    >
    > --
    > S. Justin Gengo, MCP
    > Web Developer
    >
    > Free code library at:
    > [url]www.aboutfortunate.com[/url]
    >
    > "Out of chaos comes order."
    > Nietzche
    >
    >
    > "DesignerX" <designerx2@yahoo.com> wrote in message
    > news:zvadnXILdKVNsaSiRTvUpQ@giganews.com...
    > > At a certain page in my web app I'm entering users into a Queue for
    > > processing, how can I do a server push (like the expedia 'searching for
    > > flights' screen) that can display a progress page then update when the
    > > users.
    > >
    > > Note: I'm not interested in client refresh.
    > >
    > > Thanks,
    > >
    > > Stan
    > >
    > >
    >
    >

    DesignerX Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139