<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PItemsControl.ascx.cs" Inherits="Dotnetcms.Web.UserControls.PItemsControl" %>


<div style=" width:500px; margin:30px;">

<fieldset>
<legend style="color:Black; background:url(images/set.jpg) no-repeat; width:100px; height:25px; padding-left:22px;">


<b>
<asp:Label runat="server" ID="lblname"></asp:Label>
</b>

</legend>

 
   

    <asp:GridView ID="gv" runat="server"  GridLines="None" Width="500px" 
    AutoGenerateColumns="true"  
    OnRowDeleting="gv_RowDeleting" 
    OnRowEditing="gv_RowEditing"
     OnRowUpdating="gv_RowUpdating" 
     OnRowCancelingEdit="gv_RowCancelingEdit"
     >
    
     <HeaderStyle BackColor="#E0E0E0" Font-Bold="True" HorizontalAlign="Center" />
    <AlternatingRowStyle BackColor="#F2F2F2" />
     <RowStyle BackColor="#ffffff"  Height="28"/>
    <PagerSettings Mode="NumericFirstLast" />    
    
    <Columns>
 
      <asp:CommandField ShowEditButton="True" />
      <asp:CommandField ShowDeleteButton="True"/>
 
     
    </Columns>
    </asp:GridView>
    <br />  <br />
<hr />
添加新值<br />
 名称：<asp:TextBox ID="name" runat="server"></asp:TextBox> &nbsp;&nbsp;
 键值：<asp:TextBox ID="value" runat="server"></asp:TextBox><br />
 
 <div style=" margin:10px; padding-left:80px">
    <asp:Button ID="btn_add" OnClick="AddRow" runat="server" Text=" 添加新值 " class="btn"  />
    </div>
    
</fieldset>

    </div>
    