<asp:Repeater ID="rptSumbitMode" runat="server"
onitemdatabound="rptSumbitMode_ItemDataBound">
<HeaderTemplate>
<table width="100%" cellpadding="0" cellspacing="0" class="grid" id="tab_SubModel">
</HeaderTemplate>
<ItemTemplate>
<tr class="griditem">
<td class="title"><asp:Label ID="lbFlowNameSumbitMain" runat="server"></asp:Label></td>
<td><asp:panel ID="panel1" runat="server" /></td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
protected void rptFlowTimer_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
SinglePermissionCategory myControl = (SinglePermissionCategory)Page.LoadControl("~/General/Controls/SinglePermissionCategory.ascx");
myControl.ID = "repCategory" + intCategoryID;
myControl.Permissions = _permissions;
myControl.CategoryID = intCategoryID;
e.Item.Controls.Add(myControl);
}
}