<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="soulCoteManager.aspx.cs" Inherits="LoveWeb.Admin.soulCoteManager" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>显示所有文章类别名称</h1>
<table>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="objArtiCote" DataKeyNames="Arti_coteid" 
        CssClass="zitidaxiao">
        <Columns>
            <asp:BoundField DataField="Arti_coteid" HeaderText="文章类别编号" 
                SortExpression="Arti_coteid" />
            <asp:BoundField DataField="Arti_cotename" HeaderText="文章类别名称" 
                SortExpression="Arti_cotename" />
            <asp:CommandField HeaderText="修改" ShowDeleteButton="True" 
                ShowEditButton="True" />
        </Columns>
    </asp:GridView>
    <asp:ObjectDataSource ID="objArtiCote" runat="server" 
        DataObjectTypeName="Models.ArticleCote" DeleteMethod="DelArtiCote" 
        InsertMethod="AddArtiCote" SelectMethod="GetArtCote" 
        TypeName="LoveBLL.ArticleCoteManager" UpdateMethod="UpArtiCote"></asp:ObjectDataSource>
           <td style="width: 438px">
               添加新闻类型：<br />
            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
            <br />
            <asp:Button ID="btnAdd" runat="server" onclick="btnAdd_Click" Text="提交" />
        </td>
    </table>


</asp:Content>

