Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. suggestions for sliding images on my website

suggestions for sliding images on my website

Scheduled Pinned Locked Moved Web Development
questionhelptutorial
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    ComCoderCsharp
    wrote on last edited by
    #1

    Hi guys I want my webside to be able to slide pictures after pressing a linkbutton. Do you have any suggestions how to load the pictures. I have tried to load it directly from my folder after the linkbutton is pressed and thereby updating a counter variable, but my problem is that every time the linkburtton i pressed the page is loaded again and the counter is reset to its original value, how can I get around this problem?... Regards Al

    C J T 3 Replies Last reply
    0
    • C ComCoderCsharp

      Hi guys I want my webside to be able to slide pictures after pressing a linkbutton. Do you have any suggestions how to load the pictures. I have tried to load it directly from my folder after the linkbutton is pressed and thereby updating a counter variable, but my problem is that every time the linkburtton i pressed the page is loaded again and the counter is reset to its original value, how can I get around this problem?... Regards Al

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Sounds like you want to use AJAX, or if you want to do a postback, store your counter in viewstate ( assuming ASP.NET ), or a hidden control.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      1 Reply Last reply
      0
      • C ComCoderCsharp

        Hi guys I want my webside to be able to slide pictures after pressing a linkbutton. Do you have any suggestions how to load the pictures. I have tried to load it directly from my folder after the linkbutton is pressed and thereby updating a counter variable, but my problem is that every time the linkburtton i pressed the page is loaded again and the counter is reset to its original value, how can I get around this problem?... Regards Al

        J Offline
        J Offline
        Johnny
        wrote on last edited by
        #3

        Have a look at something like Lightbox[^] as a JavaScript image slideshow library. If you want to stop a link reloading a page you need to return false from the onclick handler: <a href="" onclick="do something; return false"/>

        1 Reply Last reply
        0
        • C ComCoderCsharp

          Hi guys I want my webside to be able to slide pictures after pressing a linkbutton. Do you have any suggestions how to load the pictures. I have tried to load it directly from my folder after the linkbutton is pressed and thereby updating a counter variable, but my problem is that every time the linkburtton i pressed the page is loaded again and the counter is reset to its original value, how can I get around this problem?... Regards Al

          T Offline
          T Offline
          Tom John
          wrote on last edited by
          #4

          There's a slideshow control included in the AJAX Control toolkit that's easy to use: http://ajax.asp.net/ajaxtoolkit/SlideShow/SlideShow.aspx[^] Hope this helps Tom

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups