"DesignerX" wrote in message news:zvadnXILdKVNsaSiRTvUpQ@giganews.com...[quote] > 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 > >[/quote] [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => Alex K [ip] => alexkrupoff@hot [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 2 [islastshown] => [isfirstshown] => [attachments] => [allattachments] => ) --> how to do a server push - ASP.NET General

how to do a server push - ASP.NET General

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...

  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. #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> wrote in message
    news:zvadnXILdKVNsaSiRTvUpQgiganews.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

  3. #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> wrote in message
    news:zvadnXILdKVNsaSiRTvUpQgiganews.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

  4. #4

    Default Re: how to do a server push

    Very much appreciated! looks like a good example.

    Thank You.

    Stan


    "S. Justin Gengo" <sjgengoaboutfortunate.com> wrote in message
    news:uZ3V2DQYDHA.4040tk2msftngp13.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> wrote in message
    > news:zvadnXILdKVNsaSiRTvUpQgiganews.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

Similar Threads

  1. Blazeds server push and multiple flex instances
    By Solerous in forum Macromedia Flex General Discussion
    Replies: 0
    Last Post: April 8th, 02:58 PM
  2. How to push realtime data from SQL Server
    By Richterman in forum Macromedia Flash Data Integration
    Replies: 2
    Last Post: May 17th, 08:44 PM
  3. Can you push XML data with Media Server 2
    By MCR in forum Macromedia Flash Flashcom
    Replies: 5
    Last Post: April 2nd, 06:24 PM
  4. Server PUSH to client
    By PBS in forum ASP.NET Building Controls
    Replies: 3
    Last Post: April 13th, 12:57 AM
  5. Server push
    By Michele in forum PHP Development
    Replies: 8
    Last Post: October 31st, 12:34 PM

Bookmarks

Posting Permissions

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