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

<!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">
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>展会分类管理</title>
    <link rel="stylesheet" href="../skin/Style.css" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <div class="itemtitle">
            添加分类</div>
        <div class="itemtitle_tect">
            <p>
                类别名称：<asp:TextBox ID="txtExpoType" runat="server" Width="200"></asp:TextBox><asp:Button
                    ID="btnSave" runat="server" Text="添加分类" OnClick="btnSave_Click" CssClass="i_button" /></p>
        </div>
        <div class="clr">
        </div>
        <div class="talbe_border">
            <asp:DataList ID="dlstExpoType" runat="server" OnCancelCommand="dlstExpoType_CancelCommand"
                OnDeleteCommand="dlstExpoType_DeleteCommand" OnEditCommand="dlstExpoType_EditCommand"
                OnUpdateCommand="dlstExpoType_UpdateCommand" RepeatColumns="4" DataKeyField="ID"
                Width="100%" CssClass="talbe_list">
                <HeaderStyle CssClass="noya" />
                <HeaderTemplate>
                    <div class="head_ling">
                        展会分类管理</div>
                </HeaderTemplate>
                <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" OnClientClick="return confirm('你确定要删除吗?')"></asp:LinkButton>〗
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:TextBox ID="txtType" runat="server" Text='<%# Eval("Type")%>' Width="110"></asp:TextBox>
                    <asp:LinkButton runat="server" CommandName="update" ID="btnUpdate">更新</asp:LinkButton>
                    <asp:LinkButton runat="server" CommandName="cancel" ID="btnCancel">取消</asp:LinkButton>
                </EditItemTemplate>
            </asp:DataList>
        </div>
    </form>

    <script type="text/javascript" src="../js/ExpoNewsTypeList.js"></script>

</body>
</html>
