<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Templates._Default" %>

<%@ Register Assembly="RadAjax.Net2" Namespace="Telerik.WebControls" TagPrefix="radA" %>

<%@ Register Assembly="RadComboBox.Net2" Namespace="Telerik.WebControls" TagPrefix="radC" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>   
        <radC:RadComboBox ID="RadComboBox1" runat="server" DataSourceID="AccessDataSource1"
            DataTextField="ProductName" DataValueField="ProductID" SkinsPath="~/RadControls/ComboBox/Skins"
            Width="150px" MarkFirstMatch="True" AutoPostBack="True" DropDownWidth="408px" HighlightTemplatedItems=true Height=150px>
            <HeaderTemplate>
                <table width=400px border=0>
                    <tr>
                        <td width=30px></td>
                        <td width=100px>Name</td>
                        <td width=270px>Description</td>
                    </tr>
                </table>
            </HeaderTemplate>
            <ItemTemplate>
                <table width=400px border=0>
                    <tr>
                        <td width=30px valign=top align=left>
                            <asp:Image runat=server ID=imgProduct ImageUrl='<%# "~/Images/" + DataBinder.Eval( Container.DataItem, "ImageFile" ) %>' />
                        </td>
                        <td width=100px valign=top align=left><%# DataBinder.Eval( Container.DataItem, "ProductName" ) %></td>
                        <td width=270px valign=top align=left><%# DataBinder.Eval( Container.DataItem, "ProductDescription" )  %></td>
                    </tr>
                </table>
            </ItemTemplate>
        </radC:RadComboBox>
        <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/ComboBox.mdb"
            SelectCommand="SELECT * FROM [Product]"></asp:AccessDataSource>
    </div>
    </form>
</body>
</html>
