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. how to select an item in datalist

how to select an item in datalist

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nettutorial
6 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
    sarang121
    wrote on last edited by
    #1

    hi.. how to select an item in datalist on double click to display it in other panel...in asp.net and vb.net.

    P 1 Reply Last reply
    0
    • S sarang121

      hi.. how to select an item in datalist on double click to display it in other panel...in asp.net and vb.net.

      P Offline
      P Offline
      Prasanna Kumar Pete
      wrote on last edited by
      #2

      use a DIV tag around the text where you want to double click, use javascript double click event handler to catch the event and open a new opup/redirect

      Thanks & Regards Pete

      S 1 Reply Last reply
      0
      • P Prasanna Kumar Pete

        use a DIV tag around the text where you want to double click, use javascript double click event handler to catch the event and open a new opup/redirect

        Thanks & Regards Pete

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

        can u tell in javascript how can we handle the mouse double click event..

        P 1 Reply Last reply
        0
        • S sarang121

          can u tell in javascript how can we handle the mouse double click event..

          P Offline
          P Offline
          Prasanna Kumar Pete
          wrote on last edited by
          #4

          <div id="myDetail" ondblclick="Javascript:fnShowDetails(id)" > Datalist text </div>

          Thanks & Regards Pete

          S 1 Reply Last reply
          0
          • P Prasanna Kumar Pete

            <div id="myDetail" ondblclick="Javascript:fnShowDetails(id)" > Datalist text </div>

            Thanks & Regards Pete

            S Offline
            S Offline
            sarang121
            wrote on last edited by
            #5

            since there are 'n' number of items in it then how to check that a particular item is double clicked or single clicked....

            P 1 Reply Last reply
            0
            • S sarang121

              since there are 'n' number of items in it then how to check that a particular item is double clicked or single clicked....

              P Offline
              P Offline
              Prasanna Kumar Pete
              wrote on last edited by
              #6

              you have to bind the id programatically while binding the data ti the data list use google to find how....

              Thanks & Regards Pete

              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