ASP ~ ListView output div tag

<asp:ListView ID="ListView1" runat="server" DataSourceID="sql4x4" EnableModelValidation="True" >

<LayoutTemplate>
<asp:PlaceHolder ID="itemPlaceholder" runat="server" />
</LayoutTemplate>
<ItemTemplate>
<div class="product_list4x4_item">
<img src="img/lobby_card.png" />
<div class="product_list4x4_name"><asp:Label ID="NameLabel" runat="server" Text='<%#Eval("Name") %>' /></div>
<div class="product_list4x4_short_spec"><asp:Label ID="Label1" runat="server" Text='<%#Eval("ShortSpec") %>' /></div>
<div class="product_list4x4_price">
<asp:Label ID="Label2" runat="server" Text='<%#Eval("Price1") %>' />
<div class="product_list4x4_details">View Details</div>
</div>
</div>
</ItemTemplate>
</asp:ListView>
<asp:SqlDataSource ID="sql4x4" runat="server"
ConnectionString="<%$ ConnectionStrings:ibuypowerConnectionString %>" SelectCommand="SELECT TOP (200) xxxxxxxxx">
</asp:SqlDataSource>

http://www.ezzylearning.com/tutorial.aspx?tid=9366573

沒有留言: