Postback using a timer

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Amil Hanish

    Postback using a timer

    I want to have a slideshow on a asp.net page. I would like to perform a
    asp.net POSTBACK (not a normal meta refresh) every n seconds. I want a
    asp:Button on my page to start the show. When it is clicked, I want to then
    modify the postback url of the button to stop the show (the text would
    change to "Stop" as well). I was hoping there was some way to insert some
    type of script that would execute the postback js that asp.net already
    uses...even if I had to add the registerstartup scriptblock or something.

    This needs to be a postback, not the normal meta refresh as there is lots of
    other things that go on based on a asp.net postback occurring.

    Amil


  • Amil Hanish

    #2
    Re: Postback using a timer

    I ended up using a combination of javascript setTimer and .net 2.0
    Page.ClientScri pt.GetPostBackE ventReference(P ostBackOptions) . This works
    very nicely.

    Amil

    "Amil Hanish" <amilhanish@hot mail.comwrote in message
    news:%23JkKeCFX HHA.1200@TK2MSF TNGP04.phx.gbl. ..
    >I want to have a slideshow on a asp.net page. I would like to perform a
    >asp.net POSTBACK (not a normal meta refresh) every n seconds. I want a
    >asp:Button on my page to start the show. When it is clicked, I want to then
    >modify the postback url of the button to stop the show (the text would
    >change to "Stop" as well). I was hoping there was some way to insert some
    >type of script that would execute the postback js that asp.net already
    >uses...even if I had to add the registerstartup scriptblock or something.
    >
    This needs to be a postback, not the normal meta refresh as there is lots
    of other things that go on based on a asp.net postback occurring.
    >
    Amil
    >

    Comment

    Working...