<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test_picturebrowser.aspx.cs" Inherits="test_picturebrowser" %>
<%@ Register Assembly="aspnet20_cs_outils" Namespace="aspnet20_cs_outils" TagPrefix="cc1" %>

<!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 id="Head1" runat="server">
    <title>Test PictureBrowser</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>        
        <h1>
            Affichage
        </h1>
        <asp:ListBox ID="ListBox1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ListBox1_SelectedIndexChanged">
            <asp:ListItem>Miniatures</asp:ListItem>
            <asp:ListItem>Image</asp:ListItem>
        </asp:ListBox><br />
        <br />
        <cc1:PictureBrowser ID="PictureBrowser1" runat="server">
            <HeaderTemplate>
                <h2>Quelques images</h2>
            </HeaderTemplate>
        
            <MiniTemplate>
            <asp:Image ID="Image1" ImageUrl='<%# Container.Src %>' Width="80" Height="80" runat="server" />
            </MiniTemplate>
            
            <PictureTemplate>            
            <asp:Image ID="Image1" ImageUrl='<%# Container.Src %>' runat="server" />                        
            </PictureTemplate>            
        </cc1:PictureBrowser>    
               
    </div>
    </form>
</body>
</html>
