2016-11-08 10 views
0

リピータ内にテーブルを作成します。 データが正しく表示されます。下の図のように2つのレコードになります。テーブル内にアコーディオンを実装し、asp:repeater

enter image description here 私が望むもの:ユーザーが入金番号(例16)をクリックすると、アコーディオンを作成する方法、新しいテーブルが表示され、データが含まれます。

これは最初のリピータコードリピーターです:

<asp:Repeater ID="rptDep" runat="server" > 
    <HeaderTemplate> 
     <table class="table table-hover table-striped table-condensed table-bordered table-responsive"> 
      <tr> 
       <th>Deposit No.</th> 
       <th>Custom Declaration No.</th> 
       <th>Category</th> 
       <th>Location</th> 
       <th>Goods Description</th> 
       <th>Units Balance</th> 
       <th>WT Balance</th> 
       <th>Goods Balance Amount(LC)</th> 
      </tr> 
    </HeaderTemplate> 
    <ItemTemplate> 
     <tr> 
      <td><a href="#"> <%#Eval("depNo") %></a></td> 
      <td><%#Eval("customDec") %></td>  
      <td><%#Eval("category") %></td> 
      <td><%#Eval("location") %></td> 
      <td><%#Eval("goodDesc") %></td> 
      <td><%#Eval("unitsBal") %></td> 
      <td><%#Eval("wtBal") %></td> 
      <td><%#Eval("lcBal") %></td>     
     </tr> 
    </ItemTemplate> 
    <FooterTemplate> 
     </table> 
    </FooterTemplate> 
</asp:Repeater> 

私はそれが第二のリピータが、どのようにそれを実装するか、どのようにforeachのステートメントを使用することであろうことを知っていますか?あなたが標的にされて何

Implement Nested Repeater (Repeater inside Repeater) with example in ASP.Net using C# and VB.Net

+0

: – TaW

+0

asp.net C#@TaW –

答えて

0

は、私がこの記事読んで解決策を見つけ、それを得たのWinforms、WPF、ASPを..? __Always__あなたの質問に正しくタグを付けてください!
関連する問題