Postback using a timer

  • Thread starter Thread starter Amil Hanish
  • Start date Start date
A

Amil Hanish

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 registerstartupscriptblock 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
 
I ended up using a combination of javascript setTimer and .net 2.0
Page.ClientScript.GetPostBackEventReference(PostBackOptions). This works
very nicely.

Amil
 
Back
Top