[英]How to use Child Repeater Control inside a Repeater Control in asp.net c#
i am using a repeater control in asp.net and i want to use one more repeater control inside the existing repeater control. 我在asp.net中使用了一个转发器控件,我想在现有转发器控件中再使用一个转发器控件。
Example: 例:
<!-- start child repeater -->
<!-- end child repeater -->
use the following 使用以下
<asp:Repeater ID="rp_resList" runat="server" >
<ItemTemplate>
<asp:HiddenField ID="hf_resID" runat="server" Value='<%# Eval("Id") %>' />
<asp:LinkButton ID="lnkResName" runat="server">Resource Name</asp:LinkButton>
<br />
<asp:Literal ID="litSummary" runat="server" Text='<%# Eval("summary") %>'></asp:Literal>
<br />
<asp:Repeater ID="rp_tagsSkill" runat="server">
<ItemTemplate>
<h6>
<%# Eval("Description") %></h6>
</ItemTemplate>
</asp:Repeater>
<div id="controls">
<asp:ImageButton ID="imgBtnBookmark" runat="server" />
<asp:Button ID="btnLike" runat="server" Text="Button" />
<asp:Literal ID="litComments" runat="server" Text="Comment (7)"></asp:Literal>
<asp:Button ID="btnShare" runat="server" Text="Button" />
</div>
</ItemTemplate>
</asp:Repeat>
in the you define your other repeter and for more detail follow the following link nested Repeter 在中,您可以定义其他中继器,有关更多详细信息,请遵循以下嵌套嵌套的中继器
在您的itemdatabound中找到您的孩子中继器并将其绑定。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.