Thanks a lot for your advise Scott, however i think i have little bit
complicated case.
I have 3 types of webcontrols that are nested in DataList.
**************************
<asp
ataList OnItemDataBound="odp_bound" id="pytania_list" runat="server"
Width="100%" >
<ItemTemplate>
<table width="100%" >
<asp:TextBox id="TextBox1" runat="server"
visible="false"></asp:TextBox>
<asp:RadioButtonList id="RadioButtonList1"
runat="server"></asp:RadioButtonList>
</td></tr>
</table></ItemTemplate></asp
ataList>
**************************
when DataList is bound it trrigers proc. "odp_bound" which drowing controls
based on database data.
**************************
sub odp_bound(s As Object, e As DataListItemEventArgs)
If e.Item.ItemType = ListItemType.Item Or _
e.Item.ItemType = ListItemType.AlternatingItem Then
If Not e.Item.DataItem Is Nothing Then
select case e.Item.DataItem("rodzaj")
case="4"
dim radio as RadioButtonList =
e.Item.Findcontrol("RadioButtonList1")
Dim dr As DataRowView = CType(e.Item.DataItem,
DataRowView)
dim dv as Dataview
dv=dr.CreateChildView("PytaniaOdpowiedzi")
radio.DataSource = dv
radio.DataTextField="tresc"
radio.DataBind()
(.....)
***************
after postback i should get valuses of all previously generated controls
but i dont know how to loop through those controls..
thanks 4 any advise
number
of