<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DefaultCS.aspx.cs" Inherits="AutoCompleteBox.Examples.DeclarativeDataSources.DefaultCS" %>
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
<title>Telerik ASP.NET Example</title>
</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 size-thin">
<h2>ObjectDataSource</h2>
<telerik:RadAutoCompleteBox RenderMode="Lightweight" ID="RadAutoCompleteBox1" runat="server" Width="300" MaxResultCount="5"
DataSourceID="ObjectDataSource1" DataTextField="Title" DataValueField="Id" EmptyMessage="Select Movies">
</telerik:RadAutoCompleteBox>
</div>
<div class="demo-container size-thin">
<h2>SqlDataSource</h2>
<telerik:RadAutoCompleteBox RenderMode="Lightweight" ID="RadAutoCompleteBox2" runat="server" Width="300" MaxResultCount="5"
DropDownHeight="180" DataSourceID="SqlDataSource1" DataTextField="ContactName" EmptyMessage="Select Customers"
DataValueField="CustomerID">
</telerik:RadAutoCompleteBox>
</div>
<div class="demo-container size-thin">
<h2>XmlDataSource</h2>
<telerik:RadAutoCompleteBox RenderMode="Lightweight" ID="RadAutoCompleteBox3" runat="server" Width="300" MaxResultCount="5"
DataTextField="Text" DataValueField="Value" EmptyMessage="Select Product Families">
</telerik:RadAutoCompleteBox>
</div>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" TypeName="Telerik.Web.Examples.Movie"
SelectMethod="GetMovieList"></asp:ObjectDataSource>
<asp:SqlDataSource runat="server" ID="SqlDataSource1" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
ProviderName="System.Data.SqlClient" SelectCommand="SELECT [CustomerID], [ContactName] FROM [Customers] ORDER By ContactName"></asp:SqlDataSource>
<asp:XmlDataSource runat="server" ID="XmlDataSource1" DataFile="autocomplete.xml"></asp:XmlDataSource>
</form>
</body>
</html>