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

datalist

Scheduled Pinned Locked Moved ASP.NET
tutorialquestion
8 Posts 3 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.
  • M Offline
    M Offline
    mylogics
    wrote on last edited by
    #1

    hii all i have a datalist in which i have taken labels and checkboxs.i want that when the user select the checkboxes from any rows.the text of all the selected check box get displayed in a textbox or label.i have also taken a hidden field to found the id of selected row.what is the next step that i shd perform.plz guide.thank's

    D 1 Reply Last reply
    0
    • M mylogics

      hii all i have a datalist in which i have taken labels and checkboxs.i want that when the user select the checkboxes from any rows.the text of all the selected check box get displayed in a textbox or label.i have also taken a hidden field to found the id of selected row.what is the next step that i shd perform.plz guide.thank's

      D Offline
      D Offline
      dan sh
      wrote on last edited by
      #2

      Handle the CheckChanged event and the text for the textbox/label in that.

      50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!

      M 1 Reply Last reply
      0
      • D dan sh

        Handle the CheckChanged event and the text for the textbox/label in that.

        50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!

        M Offline
        M Offline
        mylogics
        wrote on last edited by
        #3

        hiii on which command shud i do this.....can u tell me in brief....

        D 1 Reply Last reply
        0
        • M mylogics

          hiii on which command shud i do this.....can u tell me in brief....

          D Offline
          D Offline
          dan sh
          wrote on last edited by
          #4

          This is how you cna assign the check changed event handler for the check box: <asp:CheckBox ID="myCheckBox" runat="server" OnCheckedChanged="CheckChangedHandler"/> Now, in the code behind, you can access your hidden field to the selected row index and then access it using the Items property.

          50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!

          M 1 Reply Last reply
          0
          • D dan sh

            This is how you cna assign the check changed event handler for the check box: <asp:CheckBox ID="myCheckBox" runat="server" OnCheckedChanged="CheckChangedHandler"/> Now, in the code behind, you can access your hidden field to the selected row index and then access it using the Items property.

            50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!

            M Offline
            M Offline
            mylogics
            wrote on last edited by
            #5

            hii m getting one more prob when i am trying to debug by code which is written at button click event but when i click the button the control is not going inside the button click code....

            S 1 Reply Last reply
            0
            • M mylogics

              hii m getting one more prob when i am trying to debug by code which is written at button click event but when i click the button the control is not going inside the button click code....

              S Offline
              S Offline
              sashidhar
              wrote on last edited by
              #6

              Are you writing any javascript for the event..! if yes may be thts the problem..! if no copy the code in the event and delete the event and add the event and paste the code..!

              LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

              M 1 Reply Last reply
              0
              • S sashidhar

                Are you writing any javascript for the event..! if yes may be thts the problem..! if no copy the code in the event and delete the event and add the event and paste the code..!

                LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

                M Offline
                M Offline
                mylogics
                wrote on last edited by
                #7

                hi thanks..

                S 1 Reply Last reply
                0
                • M mylogics

                  hi thanks..

                  S Offline
                  S Offline
                  sashidhar
                  wrote on last edited by
                  #8

                  Its K..! Any Time..!

                  LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It 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