<%@ page language="C#" masterpagefile="AdminIndexMaster.master" autoeventwireup="true" inherits="Admin_Admin_Group, mallz" title="会员组管理" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="GroupID" EnableViewState="true" CssClass="adminlist" OnRowDataBound="GridView1_RowDataBound" OnRowCommand="GridView1_RowCommand">
         <Columns>
             <asp:BoundField DataField="GroupID" HeaderText="ID" InsertVisible="False" ReadOnly="true" HeaderStyle-Width="4%"/>                            
             <asp:BoundField DataField="GroupName" HeaderText="会员组" HeaderStyle-Width="30%"/>                            
             <asp:BoundField DataField="GroupIntro" HeaderText="会员组简介" /> 
             <asp:HyperLinkField DataNavigateUrlFields="GroupID" DataTextField="MemberNum" DataNavigateUrlFormatString="Admin_Passport.aspx?gid={0}" HeaderText="会员组人数" HeaderStyle-Width="15%" />
             <asp:TemplateField HeaderText="操作" ShowHeader="False" HeaderStyle-Width="10%">
                 <ItemTemplate >
                    <asp:HyperLink ID="md" NavigateUrl='<%# "Admin_GroupEdit.aspx?GroupID=" + Eval("GroupID") %>' runat="server" Text="修改" />
                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="com_del" CommandArgument='<%#Eval("GroupID") %>' OnClientClick="return confirm('确定要删除吗?');" Text="删除"></asp:LinkButton>
                 </ItemTemplate>
             </asp:TemplateField>
         </Columns>
         <RowStyle HorizontalAlign="Center" />
         <EmptyDataTemplate>
            <div>无数据</div>
         </EmptyDataTemplate>
     </asp:GridView>
  
</asp:Content>

