<%@ Page Language="C#" MasterPageFile="~/webUser/MasterPage.master" AutoEventWireup="true"
   EnableViewState="false" Inherits="webUser_myFile" Title="Untitled Page" Codebehind="myFile.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Content1" runat="Server">
    <form id="form1" name="form1" runat="server">
        <div class="maxTitle">
            我的文章 (最新更新100篇)
        </div>
        <asp:SqlDataSource ID="myFileConn" runat="server" ConnectionString="<%$ ConnectionStrings:connZydn %>"
            ProviderName="<%$ ConnectionStrings:connZydn.ProviderName %>"></asp:SqlDataSource>
        <asp:GridView ID="myFile" runat="server" BorderWidth="0px" Width="100%" AutoGenerateColumns="False"
            AllowPaging="True" PageSize="20" DataSourceID="myFileConn">
            <Columns>
                <asp:BoundField DataField="MName" SortExpression="MName" HeaderText="栏目">
                    <ItemStyle CssClass="bodyDiv"></ItemStyle>
                    <HeaderStyle Width="120px" CssClass="titleLeft"></HeaderStyle>
                </asp:BoundField>
                <asp:HyperLinkField Target="_blank" HeaderText="标题" DataTextField="title" DataNavigateUrlFormatString="gotoFile.aspx?menuid={0}&amp;tab={2}&amp;tabid={1}"
                    DataNavigateUrlFields="mid,tabid,tabname">
                    <ItemStyle CssClass="bodyDiv"></ItemStyle>
                    <HeaderStyle CssClass="titleLeft"></HeaderStyle>
                </asp:HyperLinkField>
                <asp:BoundField HtmlEncode="False" DataFormatString="{0:d}" DataField="createDate"
                    SortExpression="createDate" HeaderText="发布日期">
                    <ItemStyle CssClass="bodyDiv"></ItemStyle>
                    <HeaderStyle Width="80px" CssClass="titleRight"></HeaderStyle>
                </asp:BoundField>
            </Columns>
            <PagerSettings FirstPageText="第一页" LastPageText="最后页" Mode="NextPreviousFirstLast"
                NextPageText="下一页" PreviousPageText="上一页" />
            <RowStyle BackColor="#F4F9FD" />
            <PagerStyle BackColor="WhiteSmoke" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
    </form>
</asp:Content>
