<%@ Page Title="服务配置" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Book_Service_Config.aspx.cs" Inherits="Book.Admin.Book_Service_Config" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

      
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
        <ContentTemplate>


       
         
         <table class="layui-table">
             <tr>
                 <th width="100px" class="req">名称：</th>
                 <td width="200px">
  <asp:TextBox ID="txt_name"  CssClass="layui-input"   runat="server"></asp:TextBox>  
                 </td>

                 <th width="100px">
                     邮件：
                 </th>
                 <td width="300px">
                     <asp:TextBox ID="txt_value"   CssClass="layui-input"   placeholder="选填"    runat="server"></asp:TextBox> 
                 </td>
                 <td>
                     <asp:Button ID="btn_add" runat="server" class="layui-btn  layui-btn-sm"  Text="添加"
                          onclick="btn_add_Click" />
                 </td>

             </tr>

         </table>
         
     </ContentTemplate>

    </asp:UpdatePanel>


    <hr />

     <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
        <ContentTemplate>



      <asp:GridView ID="GridView1" runat="server" 
          AutoGenerateColumns="false"  
          AllowPaging="false"  
          onrowdeleting="GridView1_RowDeleting" 
           OnRowEditing="GridView1_RowEditing"
           OnRowUpdating="GridView1_RowUpdating"
           OnRowCancelingEdit="GridView1_RowCancelingEdit"
          CssClass="layui-table"  
           GridLines="None"  >
            <Columns>
            
            <asp:BoundField DataField="Name" HeaderText="名称" HeaderStyle-Width="300px"  ControlStyle-CssClass="layui-input" />
            <asp:BoundField DataField="Value"  HeaderText="邮件"  ControlStyle-CssClass="layui-input"  /> 


            <asp:CommandField ShowDeleteButton="true" ShowEditButton="true" 
                 DeleteText="删除"
                 EditText="编辑"
                 UpdateText="更新"
                 CancelText="取消"
                 ControlStyle-CssClass="layui-btn layui-btn-sm"
                 HeaderText="操作" HeaderStyle-Width="300px"/>


            </Columns>
           
        </asp:GridView>
      
     
          </ContentTemplate>

    </asp:UpdatePanel>

 
        
    
    
</asp:Content>
