Simple Slideshow

Last post 05-09-2008 8:40 PM by bbg. 8 replies.

Sort Posts:

  • Simple Slideshow

    04-30-2007, 4:44 PM
    • Loading...
    • uhebbar
    • Joined on 02-27-2006, 10:31 PM
    • Posts 41

    Hi:

    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?

     

    Thanks

    Uday

  • Re: Simple Slideshow

    04-30-2007, 4:51 PM
    Answer
    • Loading...
    • XIII
    • Joined on 07-01-2002, 3:59 AM
    • Essen, Belgium
    • Posts 9,652
    • Moderator
      TrustedFriends-MVPs

    Hi,

    you can use this AJAX control: http://ajax.asp.net/ajaxtoolkit/SlideShow/SlideShow.aspx.

    Grz, Kris.

    Read my blog | Members are volunteers so please keep out the (it's urgent | asap | reply me directly) stuff. Nobody's interested in that.
  • Re: Simple Slideshow

    05-03-2007, 10:31 AM
    • Loading...
    • uhebbar
    • Joined on 02-27-2006, 10:31 PM
    • Posts 41

    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.

    Please help..

  • Re: Simple Slideshow

    05-03-2007, 1:07 PM
    • Loading...
    • XIII
    • Joined on 07-01-2002, 3:59 AM
    • Essen, Belgium
    • Posts 9,652
    • Moderator
      TrustedFriends-MVPs

    Hi, 

    uhebbar:
    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.

    Grz, Kris.

    Read my blog | Members are volunteers so please keep out the (it's urgent | asap | reply me directly) stuff. Nobody's interested in that.
  • Re: Simple Slideshow

    05-03-2007, 2:31 PM
    • Loading...
    • uhebbar
    • Joined on 02-27-2006, 10:31 PM
    • Posts 41

    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

    Uday

  • Re: Simple Slideshow

    05-03-2007, 3:03 PM
    • Loading...
    • XIII
    • Joined on 07-01-2002, 3:59 AM
    • Essen, Belgium
    • Posts 9,652
    • Moderator
      TrustedFriends-MVPs

    Hi,

    I see several possible scenarios:

    • store the currently viewed image in viewstate, retrieve it upon postback, what the refresh will be causing, and from that make up what the next image will be.
    • use the querystring. In the <meta> tag you can specify a url in which you can place the next to view image name or unique identifier to the image. Upon postback you get the querystring put in that image, set the querystring of the next image and render the output to the browser.

    Grz, Kris.

    Read my blog | Members are volunteers so please keep out the (it's urgent | asap | reply me directly) stuff. Nobody's interested in that.
  • Re: Simple Slideshow

    05-03-2007, 3:06 PM
    • Loading...
    • uhebbar
    • Joined on 02-27-2006, 10:31 PM
    • Posts 41

    Thanks again.. is there a way to call a vb routine from the meta tags? If so then I can update the pageindex ..

     

    Thanks

  • Re: Simple Slideshow

    05-03-2007, 3:14 PM
    • Loading...
    • XIII
    • Joined on 07-01-2002, 3:59 AM
    • Essen, Belgium
    • Posts 9,652
    • Moderator
      TrustedFriends-MVPs

    Hi,

    the Page_Load event gets handled automatically upon the postback occurs. There you can set the pageindex.

    Grz, Kris.

    Read my blog | Members are volunteers so please keep out the (it's urgent | asap | reply me directly) stuff. Nobody's interested in that.
  • Re: Simple Slideshow

    05-09-2008, 8:40 PM
    • Loading...
    • bbg
    • Joined on 10-17-2007, 9:33 PM
    • Posts 29

    Hello Kris,

    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" content="5" />.

    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 statement?

    Thank you for your time and any assistance you could provide me.

     

    ron

Page 1 of 1 (9 items)