日期:2014-05-18  浏览次数:20463 次

关于Repeater 的三层嵌套问题 感兴趣的哥哥姐姐请看看!!
///第一层
<asp:Repeater ID="RpData" runat="server" OnItemDataBound="RpData_ItemDataBound">
  <ItemTemplate>
  <table border="0" cellpadding="0" cellspacing="0">
  <tr>
  <td width="20px">
  <div style="height: 10px;">
  </div>
  <div>
  <span style="word-wrap: break-word; word-break: nomal; font-size: 13px; font-weight: bold;">
  <%# Eval("Name")%></span></div>
  <asp:HiddenField ID="PowerID" Value='<%# Eval("ID") %>' runat="server" />
  </td>
  <td>
  <div style="width: 800px; float: left; margin-left: -10px;">
 ///第二层
  <asp:Repeater ID="RpUpid" OnItemDataBound="RpUpid_ItemDataBound" runat="server">
  <ItemTemplate>
  <table border="0" cellpadding="0" cellspacing="0">
  <tr>
  <td width="20px">
  <div style="height: 10px;">
  </div>
  <div>
  <span style="word-wrap: break-word; word-break: nomal; font-size: 13px; font-weight: bold;">
  <%# Eval("Name")%></span></div>
  <asp:HiddenField ID="upid" Value='<%# Eval("ID") %>' runat="server" />
  </td>
  <td>
///////第三层
  <asp:Repeater ID="RpUser" OnItemDataBound="RpUser_ItemDataBound" runat="server">
  <ItemTemplate>
  <div style="text-align: center; margin-left: 10px; margin-top: 10px; float: left;
  background-color: #e5eaf0; height: 55px; width: 100px; border: #666666 1px solid;">
  <div style="text-align: center; margin-top: 0px; vertical-align: middle; height: 30px;
  margin-top: 5px; font-size: 13px;">
  <b>
  <asp:HyperLink ID="hpUser" NavigateUrl='<%# "InOtherBoxList.aspx?UserID=" + Eval("UserID") %>'
  runat="server"