I am having trouble accessing the value typed into the textbox on click of a submit button. the control is found however the text property is always empty. Please assist.
Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
For Each item As RadListBoxItem In lbAssignedComponents.Items
Dim tbxPageComponentName As TextBox = item.FindControl("tbxPageComponentName")
Next
End Sub
<
telerik:RadAjaxPanel
runat
=
"server"
ID
=
"RadAjaxPanel1"
>
<
telerik:RadListBox
runat
=
"server"
ID
=
"lbAvailableComponents"
Height
=
"200px"
Width
=
"342px"
TransferMode
=
"Copy"
AllowTransfer
=
"true"
AllowTransferDuplicates
=
"true"
TransferToID
=
"lbAssignedComponents"
AutoPostBackOnTransfer
=
"true"
>
<
ItemTemplate
>
Component: <%# DataBinder.Eval(Container, "Text")%><
br
/>
</
ItemTemplate
>
</
telerik:RadListBox
>
<
telerik:RadListBox
runat
=
"server"
ID
=
"lbAssignedComponents"
Height
=
"200px"
Width
=
"342px"
AllowReorder
=
"true"
AllowDelete
=
"true"
AllowTransfer
=
"false"
>
<
ItemTemplate
>
Component: <%# DataBinder.Eval(Container, "Text")%><
br
/>
Unique Name: <
asp:TextBox
ID
=
"tbxPageComponentName"
runat
=
"server"
></
asp:TextBox
>
</
ItemTemplate
>
</
telerik:RadListBox
>
</
telerik:RadAjaxPanel
>