![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am creating controls dynamically (programmatically) in a loop that is navigating through a XML DOM. Once I (the user) submit the form and reloads the page (or with AutoPostBack), how can I access the controls (i.e. DropDownBoxes) to get the value? Since the Dropdownboxes are created in a loop, they all have the same name don't they? I have no idea at this point how I can access the individual controls. Code_Snippet: Dim DropDownBox As New DropDownList() DropDownBox.AutoPostBack = True tCell.Controls.Add(DropDownBox) datas = element.childNodes For Each data In datas DropDownBox_String = data.lastChild.xml & " - " & data.attributes.item(0).nodeValue DropDownBox.Items.Add(DropDownBox_String) Next data |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |