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. ListBox

ListBox

Scheduled Pinned Locked Moved ASP.NET
javascriptquestion
6 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.
  • J Offline
    J Offline
    jashimu
    wrote on last edited by
    #1

    Hi All, I need to catch an event when user select an item from ListBox. I am not sure if I have to use Javascript. if yes how do I do it. Please halp. Thansk,

    S M 2 Replies Last reply
    0
    • J jashimu

      Hi All, I need to catch an event when user select an item from ListBox. I am not sure if I have to use Javascript. if yes how do I do it. Please halp. Thansk,

      S Offline
      S Offline
      shankysharma86
      wrote on last edited by
      #2

      Hi jashimu, Some "selectedindexchanged" event should be there you can use it. just double click on list box you will get that event automatically. Regards, :)

      J 1 Reply Last reply
      0
      • S shankysharma86

        Hi jashimu, Some "selectedindexchanged" event should be there you can use it. just double click on list box you will get that event automatically. Regards, :)

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

        I get it it is true but when I select an item from the listBox it does not fire any even. I am not setting autopostback to true for reason. thanks for your reply.

        S 1 Reply Last reply
        0
        • J jashimu

          I get it it is true but when I select an item from the listBox it does not fire any even. I am not setting autopostback to true for reason. thanks for your reply.

          S Offline
          S Offline
          shankysharma86
          wrote on last edited by
          #4

          then you have to do that with javascript I think. Only autopostback can solve your problem

          G 1 Reply Last reply
          0
          • S shankysharma86

            then you have to do that with javascript I think. Only autopostback can solve your problem

            G Offline
            G Offline
            gavindon
            wrote on last edited by
            #5

            I believe you are correct, either autopostback or Javascript

            Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.

            1 Reply Last reply
            0
            • J jashimu

              Hi All, I need to catch an event when user select an item from ListBox. I am not sure if I have to use Javascript. if yes how do I do it. Please halp. Thansk,

              M Offline
              M Offline
              Monjurul Habib
              wrote on last edited by
              #6

              http://forums.asp.net/t/1257147.aspx/1?How+to+call+Javascript+for+my+Listbox+Selected+Index+change[^] http://www.dotnet-developer.de/2008/07/aspnet2005/ajax/using-javascript-on-listboxes-in-aspnet/[^]

              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