<%@ Page Language="vb" AutoEventWireup="false" Inherits="Telerik.ImageGalleryExamples.DataBinding.ServerSide.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">
<div class="left-image-gallery">
<h3>Declarative Data Binding:</h3>
<telerik:RadImageGallery RenderMode="Lightweight" ID="RadImageGallery1" runat="server" DataSourceID="SqlDataSource1" DataDescriptionField="Description" DataImageField="ImageUrl"
DataTitleField="Title" Width="600px" Height="480px" LoopItems="true">
<ThumbnailsAreaSettings ThumbnailWidth="120px" ThumbnailHeight="80px" Height="80px" />
<ImageAreaSettings Height="400px" />
</telerik:RadImageGallery>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:TelerikConnectionString %>"
ProviderName="System.Data.SqlClient" SelectCommand="SELECT [ImageUrl], [Description], [Title] FROM [CityImages]"></asp:SqlDataSource>
</div>
<div class="right-image-gallery">
<h3>Programmatic Data Binding (using the NeedDataSource event):</h3>
<telerik:RadImageGallery RenderMode="Lightweight" ID="RadImageGallery2" runat="server" OnNeedDataSource="RadImageGallery2_NeedDataSource" DataDescriptionField="Description" DataImageField="ImageUrl"
DataTitleField="Title" Width="600px" Height="480px" LoopItems="true">
<ThumbnailsAreaSettings ThumbnailWidth="120px" ThumbnailHeight="80px" Height="80px" />
<ImageAreaSettings Height="400px" />
</telerik:RadImageGallery>
</div>
</div>
</form>
</body>
</html>