<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="newsCote.aspx.cs" Inherits="LoveWeb.Admin.newsCoteManager" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>显示所有新闻类别</h1>
<table width="650px" >
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="objNewsCote" DataKeyNames="news_coteid" 
        CssClass="zitidaxiao">
        <Columns>
            <asp:CommandField HeaderText="修改" ShowDeleteButton="True" 
                ShowEditButton="True" />
            <asp:BoundField DataField="News_coteid" HeaderText="新闻类别编号" 
                SortExpression="News_coteid" />
            <asp:BoundField DataField="News_cotename" HeaderText="新闻类别名称" 
                SortExpression="News_cotename" />
        </Columns>
    </asp:GridView>
    <asp:ObjectDataSource ID="objNewsCote" runat="server" 
        DataObjectTypeName="Models.NewsCote" DeleteMethod="DelNewsCote" 
        InsertMethod="AddNewsCote" SelectMethod="GetAllNewsCote" 
        TypeName="LoveBLL.NewsCoteManagers" UpdateMethod="UpNewsCote"></asp:ObjectDataSource>
           <td>
               添加新闻类型：<br />
            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
            <br />
            <asp:Button ID="btnAdd" runat="server" onclick="btnAdd_Click" Text="提交" />
        </td>
    </table>


</asp:Content>
