Author: modig | Posted on: 12/15/2009 4:45:30 AM | Views : 256

Hi


I have a panel that I fill with a table from codebehind, each row have a hiddenfield with a id, and a checkbox. Theese controls are also created from codebehind. I would like to iterate each row in this table and retrieve the hiddenfield and its value for each row that checkbox is checked.
This is what I got so far..
For Each o As Object In TransferPanel.Controls Dim TID As Integer = 0 If TypeOf o Is CheckBox Then Dim chk As CheckBox = TryCast(o, CheckBox) If chk.Checked Then Dim hf As HiddenField = TryCast(o, HiddenField) TID = hf.Value End If End If Next



...

Go to the complete details ...