The first method, a field in the child repeater that binds to the parent:
<%# DataBinder.Eval (Container.NamingContainer.NamingContainer as RepeaterItem). DataItem, "ModuleName")%>
Two-layer nesting: <%# DataBinder.Eval (Container.Parent.Parent as RepeaterItem). DataItem, "Class2")%>
Three-layer nesting: <%# DataBinder.Eval (Container.Parent.Parent.Parent.Parent as RepeaterItem). DataItem, "Class1")%>
Four layers of nesting: <%# DataBinder.Eval (Container.Parent.Parent.Parent.Parent.Parent.Parent as RepeaterItem). DataItem, "Class1")%>
The second method, in child repeater, refers to the value of a control in the parent:
1.<%# ((HiddenField) ((RepeaterItem) ((Repeater) (((RepeaterItem) Container). NamingContainer)). NamingContainer). FindControl ("ModuleID")). Value%>
2.<%# (Container.Parent.Parent.FindControl ("Txtuserid") as TextBox). Text%>
Child repeater Get Parent Repeater