B
Benjamin Bittner
Hi NG,
my problem is pretty simple i think. ive got a repeater with a textbox and a
button. after submitting the page with the button, i want to get the
textbox.text value. but i dont seem to find a way. here is what ive tried so
far:
Dim dbDatum As String = CType(FindControl(txtDatumE.ClientID), TextBox).Text
Dim dbDatum As String = CType(Page.FindControl(txtDatumE.ClientID),
TextBox).Text
Dim dbDatum As String = CType(FindControl("txtDatumE"), TextBox).Text
Dim dbDatum As String = CType(rpEdit.FindControl("txtDatumE"), TextBox).Text
txtDatumE is the textbox, and rpEdit is the repeater.
the textbox is nested in the repeater like this:
<asp:Repeater ID="rpEdit" Runat="server">
<ItemTemplate>
<asp:TextBox ID="txtDatumE" Runat="server">
</ItemTemplate>
</asp:Repeater>
so nothing special there...
thx in advance
greets benni
my problem is pretty simple i think. ive got a repeater with a textbox and a
button. after submitting the page with the button, i want to get the
textbox.text value. but i dont seem to find a way. here is what ive tried so
far:
Dim dbDatum As String = CType(FindControl(txtDatumE.ClientID), TextBox).Text
Dim dbDatum As String = CType(Page.FindControl(txtDatumE.ClientID),
TextBox).Text
Dim dbDatum As String = CType(FindControl("txtDatumE"), TextBox).Text
Dim dbDatum As String = CType(rpEdit.FindControl("txtDatumE"), TextBox).Text
txtDatumE is the textbox, and rpEdit is the repeater.
the textbox is nested in the repeater like this:
<asp:Repeater ID="rpEdit" Runat="server">
<ItemTemplate>
<asp:TextBox ID="txtDatumE" Runat="server">
</ItemTemplate>
</asp:Repeater>
so nothing special there...
thx in advance
greets benni