<asp:repeater id= "rpttitlelist" runat= "Server" onitemdatabound= "Rpttitlelist_onitemdatabound" >
<ItemTemplate>
<tr>
<TD colspan= "2" class= "Tabledata" style= "FONT-SIZE:18PX;" >
<strong>
<% #Eval ("Name")%></strong>
</td>
</tr>
<asp:repeater id= "rptquestionlist" runat= "Server" >
<ItemTemplate>
<tr>
<TD class= "Tabledata" >
<a href= "javascript:void (0)" onclick= "Onclicktab (' 1 ', 167,this)" title= "Upload file" >
<%# Container.itemindex + 1%>, <% #Eval ("CategoryName")%></a>
</td>
<TD class= "Tabledata" >
<a id= "get_id_<% #Eval (" PKID ")%>" href= "javascript:;" onclick= "Layeropen (<% #Eval (" PKID ")%>, ' <%# Eval ("CategoryName")%> '); "
Style= "WHITE-SPACE:NOWRAP;" > Uploading Files </a>
</td>
</tr>
</ItemTemplate>
</asp:Repeater>
</ItemTemplate>
</asp:Repeater>
#region Binding Submission Information
<summary>
Binding Submission Information
</summary>
private void Rpttitlebind ()
{
Upload file list
Rpapplicationfilelist.datasource = new BLL. Applicationfileset (). Getapplicationfilelist (APPID);
Rpapplicationfilelist.databind ();
Rpttitlelist.datasource = new BLL. Appfilecategory (). Getappfilecategorylist (Standardtypeid);
Rpttitlelist.databind ();
}
Determine which position of the inner repeater is in the outer repeater
protected void Rpttitlelist_onitemdatabound (object sender, RepeaterItemEventArgs e)
{
if (E.item.itemtype = = ListItemType.Item | | e.item.itemtype = = listitemtype.alternatingitem)
{
Repeater rep = E.item.findcontrol ("Rptquestionlist") as Repeater;
DataRowView ROWV = (DataRowView) e.Item.DataItem;
int categoryId = Utils.strtoint (rowv["PKID"]. ToString (), 0);
Rep. DataSource = new BLL. Applicationfileset (). Getapplicationfilesetid (CategoryId, Standardtypeid);
Rep. DataBind ();
}
}
#endregion
. NET binding double Repeater