file_list_view.aspx
资源名称:web.rar [点击查看]
上传用户:xrffrp
上传日期:2022-03-25
资源大小:22155k
文件大小:3k
源码类别:
OA系统
开发平台:
ASP/ASPX
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="file_list_view.aspx.cs" Inherits="web_regulation_file_list_view" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" >
- <head runat="server">
- <title>无标题页</title>
- <link href="../../css/style.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <form id="form1" runat="server">
- <div><br/>
- <center>
- <asp:GridView ID="FileList" runat="server" AllowPaging="True" AllowSorting="True"
- AutoGenerateColumns="False" BackColor="White" BorderColor="#999999" BorderStyle="None"
- BorderWidth="1px" CellPadding="3" DataKeyNames="id" DataSourceID="SqlDataSource2"
- GridLines="Vertical" OnRowCommand="FileList_RowCommand" OnRowDataBound="FileList_RowDataBound"
- Style="position: relative" Width="550px">
- <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
- <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
- <Columns>
- <asp:TemplateField HeaderText="檔案名稱">
- <ItemTemplate>
- <asp:LinkButton ID="BtnFile" runat="server" CommandArgument='<%# Eval("id") %>' CommandName="DownLoad"
- Style="position: relative" Text='<%# Eval("real_name") %>'></asp:LinkButton>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:BoundField DataField="cre_date" HeaderText="創建時間" SortExpression="cre_date" />
- <asp:BoundField DataField="cre_user" HeaderText="創建人" SortExpression="cre_user" />
- </Columns>
- <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
- <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
- <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
- <AlternatingRowStyle BackColor="Gainsboro" />
- </asp:GridView>
- <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
- SelectCommand="SELECT id, real_name, cre_date, cre_user FROM dbo.OA_REGULATION_FILE WHERE (dir_id = @dir_id)">
- <SelectParameters>
- <asp:QueryStringParameter DefaultValue="16" Name="dir_id" QueryStringField="dir_id"
- Type="Int32" />
- </SelectParameters>
- </asp:SqlDataSource>
- </center>
- </div>
- </form>
- </body>
- </html>