<%@ Page Language="VB" MasterPageFile="~/Aspx/Common/Master/testBlankScreen.master" AutoEventWireup="true" Inherits="WebForms_Sample.Aspx.TestFxLayerP.Table.testRepeater" EnableEventValidation="false" Codebehind="testRepeater.aspx.vb" %>
<%@ Register Assembly="OpenTouryo.CustomControl" Namespace="Touryo.Infrastructure.CustomControl" TagPrefix="cc1" %>

<asp:Content ID="cphHeaderScripts" ContentPlaceHolderID="cphHeaderScripts" Runat="Server">
    <!-- Head 部の ContentPlaceHolder -->
</asp:Content>

<asp:Content ID="ContentPlaceHolder_A" ContentPlaceHolderID="ContentPlaceHolder_A" Runat="Server">
    <asp:Label ID="lblResult" runat="server" Text=""></asp:Label><br />

    <asp:Repeater id="rptRepeater1" runat="server">
        <HeaderTemplate>
            <table border="1" style="width:100%;">
                <tr style="background-color: darkturquoise">
                    <th><% = Me.HeaderInfo("col0") %></th>
                    <th><% = Me.HeaderInfo("col1") %></th>
                    <th><% = Me.HeaderInfo("col2") %></th>
                    <th><% = Me.HeaderInfo("col3") %></th>
                    <th><% = Me.HeaderInfo("col4") %></th>
                    <th>Button</th>
                </tr>
        </HeaderTemplate>
        
        <ItemTemplate>
            <tr>
                <td style="text-align: center">
                    <cc1:WebCustomRadioButton ID="rbnRadioButton" runat="server" GroupName="radio-grp1"/>
                </td>
                <td style="text-align: center">
                    <%# DataBinder.Eval(Container.DataItem, "fileid")%>
                </td>
                <td>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "textbox") %>'/>
                </td>
                <td>
                    <asp:CheckBox ID="cbxCheckBox1" runat="server" AutoPostBack="true"
                     Checked='<%# DataBinder.Eval(Container.DataItem, "checkbox") %>'/>
                </td>
                <td>
                    <asp:DropDownList ID="ddlDropDownList1" runat="server" AutoPostBack="true"
                        DataSource="<%# Me.DropDownListDataSource %>" DataValueField="value" DataTextField="text"
                        SelectedValue='<%# DataBinder.Eval(Container.DataItem, "dropdownlist") %>'/>
                </td>
                <td>
                    <asp:Button ID="command1" runat="server" Text="コマンド" CommandName="<%# Container.ItemIndex%>"/>
                    <asp:LinkButton ID="command2" runat="server" Text="コマンド" CommandName="<%# Container.ItemIndex%>"/>
                </td>
            </tr>
        </ItemTemplate>
                    
        <FooterTemplate>
            </table>
        </FooterTemplate>
                    
    </asp:Repeater>
                
    <asp:Button ID="btnButton1" runat="server" Text="Post Back"/>
    <asp:Button ID="btnButton2" runat="server" Text="変更の反映"/>
</asp:Content>

<asp:Content ID="cphFooterScripts" ContentPlaceHolderID="cphFooterScripts" Runat="Server">
    <!-- Footer 部の ContentPlaceHolder -->
</asp:Content>
