AddBooksCatagory.aspx
上传用户:tjxpgg
上传日期:2017-05-14
资源大小:2244k
文件大小:2k
源码类别:

SilverLight

开发平台:

ASP/ASPX

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddBooksCatagory.aspx.cs" Inherits="AddBooksCatagory" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" >
  4. <head runat="server">
  5.     <title>书本类型管理</title>
  6. </head>
  7. <body>
  8.     <form id="form1" runat="server">
  9.     <div>
  10.         <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
  11.         <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
  12.             ErrorMessage="必须输入值">*</asp:RequiredFieldValidator>&nbsp;
  13.         <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="增加分类" />&nbsp;
  14.         <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White"
  15.             BorderColor="#336666" BorderStyle="Double" BorderWidth="3px" CellPadding="4"
  16.             GridLines="Horizontal" Width="659px" OnRowDeleting="GridView1_RowDeleting">
  17.             <FooterStyle BackColor="White" ForeColor="#333333" />
  18.             <Columns>
  19.                 <asp:BoundField DataField="id" HeaderText="id" />
  20.                 <asp:BoundField DataField="name" HeaderText="分类名称" />
  21.                 <asp:CommandField DeleteText="&lt;div onclick=&quot;return confirm('确认删除吗?')&quot; &gt;删除&lt;/div&gt;"
  22.                     ShowDeleteButton="True" />
  23.             </Columns>
  24.             <RowStyle BackColor="White" ForeColor="#333333" />
  25.             <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
  26.             <PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
  27.             <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
  28.         </asp:GridView>
  29.     
  30.     </div>
  31.     </form>
  32. </body>
  33. </html>