Last post May 09, 2008 08:40 PM by bbg
Apr 30, 2007 04:44 PM|uhebbar|LINK
I was hoping someone could help me do this. On the photos.aspx page when one clicks on a photo we have the next previous, first, last photos. Is there a way to incorporate a slideshow button with some code which advances through all slides in that album
every x seconds?
Apr 30, 2007 04:51 PM|XIII|LINK
you can use this AJAX control:
May 03, 2007 10:31 AM|uhebbar|LINK
Yeah I saw the ajax module but i dont want to use AJAX.. Isnt there any easy way to just add a button which automatically updates the pageindex every few seconds.
May 03, 2007 01:07 PM|XIII|LINK
i dont want to use AJAX.
you didn't mention that in your original question so that's why I provided that solution. Another technique would be to use what's inside this article:
Create a simple slide show and in the html place the following meta tag:
<meta http-equiv="refresh" content="5" />
You should be able to put these 2 together and obtain the result you're after.
May 03, 2007 02:31 PM|uhebbar|LINK
Thanks for the response. If I put the
<meta http-equiv="refresh" content="5" /> code .. how will it move to the next image?
Thanks again for your patient help
May 03, 2007 03:03 PM|XIII|LINK
I see several possible scenarios:
May 03, 2007 03:06 PM|uhebbar|LINK
Thanks again.. is there a way to call a vb routine from the meta tags? If so then I can update the pageindex ..
May 03, 2007 03:14 PM|XIII|LINK
the Page_Load event gets handled automatically upon the postback occurs. There you can set the pageindex.
May 09, 2008 08:40 PM|bbg|LINK
I'm new to ASP.NET / C# programming, and have been working on a simple slideshow and am trying to figure out the best way to advance the slides every x seconds. I am also trying to accomplish this with out AJAX. I read your suggestion of using <meta http-equiv="refresh"
If I may ask you 2 questions?
1. I'm using MasterPages so I believe I have to put the <meta... tag in the masterpage. As I'm using this website for more than just the slideshow, I don't want to refresh the non-slideshow pages every 5 seconds. Is there away to perform the refresh for
just the page that is displaying the slide show? If not, do you have any other alternate ways for me to accomplish this?
2. You have a link that points to Wikipedia regarding meta refresh, and it says that the W3C discourages the creation of auto-refreshing pages. As I'm new to this, I'm not sure how strictly I should be adhering to this? Do you have thoughts on this Wikipedia
Thank you for your time and any assistance you could provide me.