<%@ Page Language="C#" MasterPageFile="~/Login/UserPage.Master" AutoEventWireup="true" CodeBehind="User_Article.aspx.cs" Inherits="LoveWeb.Login.User_Article" %>


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

    <title>用户文章</title>

    <div style="height: 240px">
    
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="Arti_id" DataSourceID="objArti" AllowPaging="True" 
            BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" 
            CellPadding="3" CellSpacing="2" Width="605px">
            <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
            <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
            <Columns>
                <asp:BoundField DataField="Arti_id" HeaderText="文章编号" 
                    SortExpression="Arti_id" />
                <asp:BoundField DataField="Arti_title" HeaderText="文章标题" 
                    SortExpression="Arti_title" />
                <asp:BoundField DataField="Arti_time" HeaderText="发表时间" 
                    SortExpression="Arti_time" />
                <asp:BoundField DataField="Arti_cotename" HeaderText="文章类别" 
                    SortExpression="Arti_cotename" />
                <asp:CommandField HeaderText="修改" ShowDeleteButton="True" 
                    ShowEditButton="True" />
            </Columns>
            <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
        </asp:GridView>
        <asp:ObjectDataSource ID="objArti" runat="server" 
            DataObjectTypeName="Models.Article" DeleteMethod="DelArti" 
            SelectMethod="GetUserByUserId" TypeName="LoveBLL.ArticleManager" 
            UpdateMethod="UpArti">
            <SelectParameters>
                <asp:SessionParameter Name="id" SessionField="userid" Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
    
    </div>
</asp:Content>
