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. Adding controls Runtime

Adding controls Runtime

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelpquestion
4 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.
  • N Offline
    N Offline
    nagendrathecoder
    wrote on last edited by
    #1

    Hello Friends, I am developing an application in ASP.Net with VB. I am adding some checkboxes at runtime like this: " So, on some button click event, how can i know that which checkboxes are checked, i want this for further evaluation. Please somebody help me. Thanks and Regards, Nagendra.

    F E 2 Replies Last reply
    0
    • N nagendrathecoder

      Hello Friends, I am developing an application in ASP.Net with VB. I am adding some checkboxes at runtime like this: " So, on some button click event, how can i know that which checkboxes are checked, i want this for further evaluation. Please somebody help me. Thanks and Regards, Nagendra.

      F Offline
      F Offline
      firozu
      wrote on last edited by
      #2

      You need to loop through all the controls on the web page and if you find the control is of type 'checkbox', then check for its Checkbox.Checked property. Hope this helps.

      1 Reply Last reply
      0
      • N nagendrathecoder

        Hello Friends, I am developing an application in ASP.Net with VB. I am adding some checkboxes at runtime like this: " So, on some button click event, how can i know that which checkboxes are checked, i want this for further evaluation. Please somebody help me. Thanks and Regards, Nagendra.

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

        nagendrathecoder wrote:

        "

        how is that adding at runtime?

        nagendrathecoder wrote:

        So, on some button click event, how can i know that which checkboxes are checked, i want this for further evaluation.

        if you are creating the control at runtime just find the control in the event using FindControl and go from there

        N 1 Reply Last reply
        0
        • E eyeseetee

          nagendrathecoder wrote:

          "

          how is that adding at runtime?

          nagendrathecoder wrote:

          So, on some button click event, how can i know that which checkboxes are checked, i want this for further evaluation.

          if you are creating the control at runtime just find the control in the event using FindControl and go from there

          N Offline
          N Offline
          nagendrathecoder
          wrote on last edited by
          #4

          I used your method but not getting control of type CheckBox?????

          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