2013-06-05 48 views
0

我是asp.net新手,我在一個組中有5個項目,每個項目都有5-10個圖像,我想要的是顯示所有項目的所有圖像不斷一個接一個的項目。我不知道如何從這開始。現在我需要的是動態地顯示所有項目的所有圖像,而無需用戶交互。在頁面加載第一項得到突出顯示,其內容應顯示在第二等,所有項目後請幫助在ASP.NET中連續顯示所有項目的所有內容

+0

按組,你的意思是說一個文件夾? –

回答

0

您可以使用嵌套的GridView或ListView控件。

例如:

<asp:ListView ID="lstvParent" runat="server"> 
    <ItemTemplate> 
     <asp:Label ID="lblGroupName" runat="server"></asp:Label> 
     <asp:ListView ID="lstvChild" runat="server"> 
      <ItemTemplate> 
       <asp:Image ID="imgPics" runat="server" /> 
      </ItemTemplate> 
     </asp:ListView> 
    </ItemTemplate> 
</asp:ListView>