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 item in datalist

how to select item in datalist

Scheduled Pinned Locked Moved ASP.NET
tutorialhelp
4 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.. i want to know how to select a item in datalist so that i can use in any other function or on any other button click. for example if i select one item and i am having one button which is for download so when i click on button the item should be downloaded. but i am getting one problem is that when i select item it is going to pageload event and it is not selecting the item...

    E 1 Reply Last reply
    0
    • S sarang121

      hi.. i want to know how to select a item in datalist so that i can use in any other function or on any other button click. for example if i select one item and i am having one button which is for download so when i click on button the item should be downloaded. but i am getting one problem is that when i select item it is going to pageload event and it is not selecting the item...

      E Offline
      E Offline
      eyeseetee
      wrote on last edited by
      #2

      sarang121 wrote:

      but i am getting one problem is that when i select item it is going to pageload event and it is not selecting the item...

      Are you using PostBack. This would usually result in the Page Load code running again.

      S 1 Reply Last reply
      0
      • E eyeseetee

        sarang121 wrote:

        but i am getting one problem is that when i select item it is going to pageload event and it is not selecting the item...

        Are you using PostBack. This would usually result in the Page Load code running again.

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

        yes because i am also using a list control every time when i refresh the page the data should be in it without repeating....

        E 1 Reply Last reply
        0
        • S sarang121

          yes because i am also using a list control every time when i refresh the page the data should be in it without repeating....

          E Offline
          E Offline
          eyeseetee
          wrote on last edited by
          #4

          So you are selecting an item from the datalist and then it is posting back? Well what do you want to do with that item from the datalist? Why are you posting back?

          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