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 OnChangeEvent

ListBox OnChangeEvent

Scheduled Pinned Locked Moved ASP.NET
csharpjavascriptasp-nethelptutorial
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.
  • R Offline
    R Offline
    R Thomas 0
    wrote on last edited by
    #1

    hi...i have 2 list boxes.. and i want that when user clicks one listbox item, the other listbox's same item gets selected too,, i understand that i need OnChange event for this, since ASP.NET doesnt have this event i will have to use javascript so can anyone pls tell me how to incorporate javascript function in ASP.NET to do the above?? i dont know how to write the javascript to select the other listbox's same item nor do i know how to make the Javascript function be called by ASP.NET listbox when IT IS Clicked! ca someone pls help??? tks a lot... "Rejoice always, pray without ceasing, in everything give thanks; for this is the will of God in Christ Jesus for you."1Thess. 5:16-18

    N 1 Reply Last reply
    0
    • R R Thomas 0

      hi...i have 2 list boxes.. and i want that when user clicks one listbox item, the other listbox's same item gets selected too,, i understand that i need OnChange event for this, since ASP.NET doesnt have this event i will have to use javascript so can anyone pls tell me how to incorporate javascript function in ASP.NET to do the above?? i dont know how to write the javascript to select the other listbox's same item nor do i know how to make the Javascript function be called by ASP.NET listbox when IT IS Clicked! ca someone pls help??? tks a lot... "Rejoice always, pray without ceasing, in everything give thanks; for this is the will of God in Christ Jesus for you."1Thess. 5:16-18

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      I think the best thing you could do is a little more research before attempting any further ASP.NET development. SelectedIndexChanged RegisterClientScriptBlock

      R 1 Reply Last reply
      0
      • N Not Active

        I think the best thing you could do is a little more research before attempting any further ASP.NET development. SelectedIndexChanged RegisterClientScriptBlock

        R Offline
        R Offline
        R Thomas 0
        wrote on last edited by
        #3

        no...i think i wasnt articulate enough! you didnt really get my question... i know of SelectedIndexChanged and RegisterClientScriptBlock! "Rejoice always, pray without ceasing, in everything give thanks; for this is the will of God in Christ Jesus for you."1Thess. 5:16-18

        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