<%@ Page Language="vb" AutoEventWireup="false" Inherits="Telerik.ListViewExamplesVBNET.Migration.DefaultVB"CodeFile="DefaultVB.aspx.vb" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
<title>Telerik ASP.NET Example</title>
<link href="styles.css" rel="stylesheet" />
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
<telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
<div class="demo-container">
<!-- content start -->
<table>
<tr>
<td class="offset">
<h3>RadListView</h3>
<telerik:RadListView ID="RadListView1" DataSourceID="SqlDataSource1" runat="server" RenderMode="Lightweight"
ItemPlaceholderID="ProductItemContainer">
<LayoutTemplate>
<fieldset id="ProductItemContainer" runat="server">
</fieldset>
</LayoutTemplate>
<ItemTemplate>
<ul>
<li>
<label>
Product name:</label>
<%#Eval("ProductName")%>
</li>
<li>
<label>
Quantity per unit:</label>
<%#Eval("QuantityPerUnit")%>
</li>
<li>
<label>
Unit price:</label>
<%#DataBinder.Eval(Container.DataItem, "UnitPrice", "{0:C}")%>
</li>
<li>
<label>
Units in stock:</label>
<%#Eval("UnitsInStock")%>
</li>
<li>
<label>
Discontinued:</label>
<%#Eval("Discontinued")%>
</li>
</ul>
</ItemTemplate>
</telerik:RadListView>
</td>
<td>
<h3>ASP.NET ListView</h3>
<asp:ListView ID="ListView1" DataSourceID="SqlDataSource1" runat="server" ItemPlaceholderID="ProductItemContainer">
<LayoutTemplate>
<fieldset id="ProductItemContainer" runat="server">
</fieldset>
</LayoutTemplate>
<ItemTemplate>
<ul>
<li>
<label>
Product name:</label>
<%#Eval("ProductName")%>
</li>
<li>
<label>
Quantity per unit:</label>
<%#Eval("QuantityPerUnit")%>
</li>
<li>
<label>
Unit price:</label>
<%#DataBinder.Eval(Container.DataItem, "UnitPrice", "{0:C}")%>
</li>
<li>
<label>
Units in stock:</label>
<%#Eval("UnitsInStock")%>
</li>
<li>
<label>
Discontinued:</label>
<%#Eval("Discontinued")%>
</li>
</ul>
</ItemTemplate>
</asp:ListView>
</td>
</tr>
</table>
<br />
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
ProviderName="System.Data.SqlClient" SelectCommand="SELECT TOP 3 ProductID, ProductName, QuantityPerUnit, UnitPrice, UnitsInStock, Discontinued FROM Products"></asp:SqlDataSource>
<!-- content end -->
</div>
</form>
</body>
</html>