Data Binding ASP.Net Tutorial

<%@ Page Language="C#" %>
<%@ Import Namespace="System.Collections.Generic" %>
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    void Page_Load()
    {
        List photos = new List();
        photos.Add( "~/Images/A.jpg" );
        photos.Add( "~/Images/B.jpg" );
        photos.Add( "~/Images/C.jpg" );
        photos.Add( "~/Images/D.jpg" );
        photos.Add( "~/Images/E.jpg" );
        photos.Add( "~/Images/F.jpg" );
        photos.Add( "~/Images/G.jpg" );
        lstPhotos.DataSource = photos;
        lstPhotos.DataBind();
    }



    Photo Gallery


    
    

            ID="lstPhotos"
        GroupItemCount="3"
        runat="server">
        
                            id="groupPlaceholder"
                runat="server" />
        

        
            

                            id="itemPlaceholder"
                runat="server" />
            

        

        
                            id="imgPhoto"
                ImageUrl='<%# Container.DataItem %>'
                Width="200px"
                Runat="server" />