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
  1. Home
  2. Web Development
  3. ASP.NET
  4. Problem with redirecting pages on click of images.

Problem with redirecting pages on click of images.

Scheduled Pinned Locked Moved ASP.NET
toolshelpquestion
3 Posts 2 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.
  • S Offline
    S Offline
    SPanicker
    wrote on last edited by
    #1

    I am trying to redirect the user to different pages on click of various available images for different websites. How can use a single common function say, 'openSite' in script so as to handle all the redirection from various image clicks? Is it possible to get parameters like tag's id on run-time and use that to switch statements in the 'openSite' method to redirect the page to the appropriate one?

    Regards, SPanicker.

    modified on Wednesday, December 3, 2008 7:09 AM

    C 1 Reply Last reply
    0
    • S SPanicker

      I am trying to redirect the user to different pages on click of various available images for different websites. How can use a single common function say, 'openSite' in script so as to handle all the redirection from various image clicks? Is it possible to get parameters like tag's id on run-time and use that to switch statements in the 'openSite' method to redirect the page to the appropriate one?

      Regards, SPanicker.

      modified on Wednesday, December 3, 2008 7:09 AM

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

      you can write an onclick that passes 'this' and it will pass your img tag to the javascipt method.

      Christian Graus Driven to the arms of OSX by Vista.

      S 1 Reply Last reply
      0
      • C Christian Graus

        you can write an onclick that passes 'this' and it will pass your img tag to the javascipt method.

        Christian Graus Driven to the arms of OSX by Vista.

        S Offline
        S Offline
        SPanicker
        wrote on last edited by
        #3

        Are you trying to say one should get the sender object and reflect back its properties by using GetType()?

        Regards, SPanicker.

        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