refresh a page every so often

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Laszlo Szijarto

    refresh a page every so often

    I want to refresh the text of a label box, say, every second. Is there a
    way to maintain some kind of persistent connection to the server and the
    codebehind in order to pull this off or am I forced to use some ugly
    client-side page-refresh scription?

    Thank you for any advice,
    Laszlo


  • Marina

    #2
    Re: refresh a page every so often

    You might be able to use something like XmlHttp, to do a call to a page from
    client side javascript.

    Another option, is to place the label on its own page, in an iframe. And
    refresh the page in the iframe ever X seconds. This will have minimal
    flashing, and will probably be barely noticeable.

    "Laszlo Szijarto" <lszijarto@nosp am.mrdoc.cc> wrote in message
    news:e5Ah7s$PDH A.1612@TK2MSFTN GP11.phx.gbl...[color=blue]
    > I want to refresh the text of a label box, say, every second. Is there a
    > way to maintain some kind of persistent connection to the server and the
    > codebehind in order to pull this off or am I forced to use some ugly
    > client-side page-refresh scription?
    >
    > Thank you for any advice,
    > Laszlo
    >
    >[/color]


    Comment

    • Steve C. Orr, MCSD

      #3
      Re: refresh a page every so often

      You are forced to use some ugly client side page refresh, unless you use
      another ugly option such as hosting a special ActiveX control on your page
      that can handle a more complex (persistent) network connection.

      --
      I hope this helps,
      Steve C. Orr, MCSD



      "Laszlo Szijarto" <lszijarto@nosp am.mrdoc.cc> wrote in message
      news:e5Ah7s$PDH A.1612@TK2MSFTN GP11.phx.gbl...[color=blue]
      > I want to refresh the text of a label box, say, every second. Is there a
      > way to maintain some kind of persistent connection to the server and the
      > codebehind in order to pull this off or am I forced to use some ugly
      > client-side page-refresh scription?
      >
      > Thank you for any advice,
      > Laszlo
      >
      >[/color]


      Comment

      • Laszlo Szijarto

        #4
        Re: refresh a page every so often

        Thank you both. I'll check into the XML HTTP stuff. Or I may just have to
        go the way of using an embedded ActiveX-like control.

        Thanks again,
        Laszlo



        --
        Laszlo Szijarto
        Software Engineer
        Analex Corporation
        2001 Aerospace Parkway
        Cleveland, Ohio 44142
        Phone: 216-925-1127

        NOTICE: The information contained in this E-mail and any attachments is
        subject to Export Administration Regulations (EAR) and must be handled in
        accordance with its EAR classification. If its EAR classification is not
        specified, the information contained in this E-mail and any attachments
        should not be disseminated to any non-U.S. person because the appropriate
        EAR classification may be more restrictive than "Public Domain."

        "Steve C. Orr, MCSD" <Steve@Orr.ne t> wrote in message
        news:%23Zz$S$$P DHA.304@tk2msft ngp13.phx.gbl.. .[color=blue]
        > You are forced to use some ugly client side page refresh, unless you use
        > another ugly option such as hosting a special ActiveX control on your page
        > that can handle a more complex (persistent) network connection.
        >
        > --
        > I hope this helps,
        > Steve C. Orr, MCSD
        > http://Steve.Orr.net
        >
        >
        > "Laszlo Szijarto" <lszijarto@nosp am.mrdoc.cc> wrote in message
        > news:e5Ah7s$PDH A.1612@TK2MSFTN GP11.phx.gbl...[color=green]
        > > I want to refresh the text of a label box, say, every second. Is there[/color][/color]
        a[color=blue][color=green]
        > > way to maintain some kind of persistent connection to the server and the
        > > codebehind in order to pull this off or am I forced to use some ugly
        > > client-side page-refresh scription?
        > >
        > > Thank you for any advice,
        > > Laszlo
        > >
        > >[/color]
        >
        >[/color]


        Comment

        Working...