<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MetaTypeManage.aspx.cs" Inherits="admin_Meta_MetaTypeManage" %>

<!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>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <table>
                <tr>
                    <td>
                        Meta类别：
                        <asp:TextBox ID="txtMetaType" runat="server"></asp:TextBox><asp:Button ID="btbSave"
                            runat="server" Text="添加" OnClick="btbSave_Click" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:DataList ID="dlstMetaType" runat="server" OnCancelCommand="dlstMetaType_CancelCommand"
                            OnDeleteCommand="dlstMetaType_DeleteCommand" OnEditCommand="dlstMetaType_EditCommand"
                            RepeatColumns="3" OnUpdateCommand="dlstMetaType_UpdateCommand" DataKeyField="ID" CellPadding="4" ForeColor="#333333">
                            <EditItemTemplate>
                                <asp:TextBox ID="txtType" runat="server" Text='<%# Eval("Type") %>'></asp:TextBox>
                                <asp:LinkButton runat="server" CommandName="update" ID="btnUpdate">更新</asp:LinkButton>
                                <asp:LinkButton runat="server" CommandName="cancel" ID="btnCancel">取消</asp:LinkButton>
                                <asp:LinkButton ID="lbtnDelete" runat="server" Text="删除" CommandName="delete"></asp:LinkButton>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <%# DataBinder.Eval(Container.DataItem, "Type")%>
                                〖<asp:LinkButton runat="server" CommandName="edit" ID="lbtnEdit">编辑</asp:LinkButton>
                                <asp:LinkButton ID="lbtnDelete" runat="server" Text="删除" CommandName="delete"></asp:LinkButton>〗
                            </ItemTemplate>
                            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <SelectedItemStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                            <AlternatingItemStyle BackColor="White" />
                            <ItemStyle BackColor="#EFF3FB" />
                            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        </asp:DataList>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
