• Repeater 后台绑定自定义控件


     <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);

                   
                }
            }

  • 相关阅读:
    apue 第19章 伪终端
    apue 第18章 终端I/O
    linux IPC socket(2)
    linux IPC socket
    linux POSIX信号量
    【Luogu】【关卡2-16】线性动态规划(2017年10月)【还差三道题】
    【Luogu】【关卡2-15】动态规划的背包问题(2017年10月)【还差一道题】
    【Luogu】【关卡2-14】 树形数据结构(2017年10月)【AK】
    【Luogu】【关卡2-13】线性数据结构(2017年10月)【还差一道题】
    【Luogu】【关卡2-12】递推与递归二分(2017年10月)
  • 原文地址:https://www.cnblogs.com/liyuxin/p/2028875.html
Copyright © 2020-2023  润新知