How to VB find dynamic checkbox in panel in aspx.vb ?

  • Thread starter Thread starter Little Flowers
  • Start date Start date
L

Little Flowers

Guest
Below is parts of sample source code in aspx.vb

~~~~~~~~~~~

Dim totalcheckbox() as string()= {"25","35","45",55"}

For Each icheckbox in totalcheckbox

Dim NewCheckbox as checkbox = new checkbox()

Dim newlabel as label = new label()

NewCheckbox.ID = "CheckBox" & icheckbox.tostring

NewCheckbox.text = "CheckBox" & icheckbox.tostring

Panel1.controls.add( NewCheckbox)

Panel1.controls.add(newlabel)

Next

In panel1 has labels and checkboxs, how to write code to find the checkbox.checked = true on web site (aspx) after

panel1 has several dynamic controls.

Continue reading...
 
Back
Top