Postback using a timer

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
 
A

Amil Hanish

I ended up using a combination of javascript setTimer and .net 2.0
Page.ClientScript.GetPostBackEventReference(PostBackOptions). This works
very nicely.

Amil
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top