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. List box selection - Client Side

List box selection - Client Side

Scheduled Pinned Locked Moved ASP.NET
questionjavatools
4 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.
  • S Offline
    S Offline
    sekannak
    wrote on last edited by
    #1

    Hi, I have button and list box in my page which is having 10 records, When i select any rows from the list box i want to disable the button.. I need to do this from Client side , so what is the event to call the java script fnction. Please reply to my question.. regards, kannak........

    kannak

    K B S 3 Replies Last reply
    0
    • S sekannak

      Hi, I have button and list box in my page which is having 10 records, When i select any rows from the list box i want to disable the button.. I need to do this from Client side , so what is the event to call the java script fnction. Please reply to my question.. regards, kannak........

      kannak

      K Offline
      K Offline
      kadaoui el mehdi
      wrote on last edited by
      #2

      Server controls ou Html controls ?

      1 Reply Last reply
      0
      • S sekannak

        Hi, I have button and list box in my page which is having 10 records, When i select any rows from the list box i want to disable the button.. I need to do this from Client side , so what is the event to call the java script fnction. Please reply to my question.. regards, kannak........

        kannak

        B Offline
        B Offline
        Brij
        wrote on last edited by
        #3

        You have to attach an javascript function on

        onclick

        event,on every listbox item, which will disable your button.

        Cheers!! Brij

        1 Reply Last reply
        0
        • S sekannak

          Hi, I have button and list box in my page which is having 10 records, When i select any rows from the list box i want to disable the button.. I need to do this from Client side , so what is the event to call the java script fnction. Please reply to my question.. regards, kannak........

          kannak

          S Offline
          S Offline
          Sandeep Mewara
          wrote on last edited by
          #4

          foreach(ListItem lItems in testListBox.Items)
          {
          //DisableButtonContol() written in javascript
          lItems.Attributes.Add("onclick", "DisableButtonContol();");
          }

          Hope this helps...

          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