css - why cant i find the control txt in this vb.net asp:repeater no matter what i do on rgroups itembound -


I can not find the control txt that is a text box in the repeater I have the rgroups itemdatabound event

as ------------ itemdatabound code

  protected sub rGroups_ItemDataBound (ByVal this object, as ByVal e System.Web.UI.WebControls.RepeaterItemEventArgs) handle as rGroups.ItemDataBound dim DV DataRowView = TryCast (e.Item.DataItem, DataRowView) if DV is nothing isnot dim rptOrderDetails repeater = TryCast (e.Item.FindControl ( "rSubgroups"), repeater) dim Control1 As in control = rGroups. Items (0) .FindControl ( "txt") Dim txtbox textbox = DirectCast (Control1, such as text boxes) so rptOrderDetails isnot nothing then new DataView (dssubmenu) dv_co.RowFilter = "type = '' where dv_co dim + txtbox.Text + " '" rptOrderDetails.DataSource = dv_co rptOrderDetails.DataBind () end If end If end Sub   

------------ repeater code

  & lt; asp: repeater id = "R group" Rnat = "server" & gt; & LT; HeaderTemplate & gt; & Lt; ul id = "prod_nav" class = " clearfix "& gt; & Lt; / HeaderTemplate & gt; & LT; ItemTemplate & gt; & Lt; asp: textBox ID =" txt "text =" & lt;% # DataBinder.Eval (Kantenrkdetaitm, "Gru Disk ")% & gt;" runat = "server" & gt; & lt; / ASP: text box & gt; li class = "top" & gt; & lt; a href = "05-pink- 02-category-list.html "class =" top_link ">  <% # DataBinder.Eval (Container.DataItem," GROUPNAME ")%> & gt; Lt; / span & gt; & lt; / a & gt; & lt; ASP: repeater id = "rsub group" run = "server" & gt; & Lt; HeaderTemplate & gt; & Lt; Ul class = "sub" & gt; & Lt; Li class = "cleanfix" & gt; & Lt; Ul & gt; & Lt; / HeaderTemplate & gt; & Lt; ItemTemplate & gt; & Lt; Li & gt; & Lt; A href = "partviewer.aspx subgrp = & lt;?% # DataBinder.Eval (Container.DataItem," subgroupId ")%>" & Gt; & Lt;% # DataBinder.Eval (Container.DataItem, "subgroupname")%> & Lt; / A & gt; & Lt; / Li & gt; & Lt; / ItemTemplate & gt; & Lt; FooterTemplate & gt; & Lt; / Ul & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; & Lt; / FooterTemplate & gt;   

For txt control items in repeater , repeater do not want to receive your control. The event has been newly created in EventGues logic for this incident. This is from the item that you want to get your control:

  Slow controls 1 control = e.Item.FindControl ("txt")    

Comments