file_add.aspx
上传用户:xrffrp
上传日期:2022-03-25
资源大小:22155k
文件大小:3k
源码类别:

OA系统

开发平台:

ASP/ASPX

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="file_add.aspx.cs" Inherits="web_regulation_file_add" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/asp:TableRow/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" >
  4. <head runat="server">
  5.     <title>无标题页</title>
  6.     <link href="../../css/style.css" rel="stylesheet" type="text/css" />
  7. </head>
  8. <body>
  9.     <form id="form1" runat="server">
  10.     <div>
  11.     <center>
  12.         &nbsp;</center>
  13.         <center>
  14.             <asp:Panel ID="pnlAddFile" runat="server" Style="position: relative">
  15.                 <asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Size="Medium" Style="position: relative"
  16.                     Text="添加新檔案"></asp:Label><br />
  17.                 <asp:Table runat="server" ID="Tbl">
  18.                     <asp:TableRow>
  19.                         <asp:TableCell BorderWidth="1px">
  20.                             <asp:Label ID="Label1" runat="server" Text="檔案目錄"></asp:Label>
  21.                         </asp:TableCell>
  22.                         <asp:TableCell BorderWidth="1px" HorizontalAlign="left">
  23.                             <asp:Label ID="LblFileDir" runat="server"  Text=" &nbsp;"></asp:Label>
  24.                         </asp:TableCell>
  25.                     </asp:TableRow>
  26.                     <asp:TableRow>
  27.                         <asp:TableCell BorderWidth="1px">
  28.                             <asp:Label ID="LblFile" runat="server"  Text="檔案"></asp:Label>&nbsp;
  29.                         </asp:TableCell>
  30.                         <asp:TableCell BorderWidth="1px" HorizontalAlign="left">
  31.                             <asp:FileUpload ID="FileUpload1" runat="server" Width="400px" />
  32.                             <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="FileUpload1" runat="server" ErrorMessage="請選擇檔案"
  33.                                 Display="Dynamic"></asp:RequiredFieldValidator>
  34.                             <input id="ContentLength" runat="server" style="position: relative" type="hidden" /></asp:TableCell>
  35.                     </asp:TableRow>
  36.                     <asp:TableRow>
  37.                         <asp:TableCell BorderWidth="1px" ColumnSpan="2">
  38.                             <asp:Button ID="BtnFileOk" runat="server" OnClick="BtnFileOk_Click" Text="儲存" />
  39.                         </asp:TableCell>
  40.                     </asp:TableRow>
  41.                 </asp:Table>
  42.             </asp:Panel>
  43.         </center>
  44.     </div>
  45.     </form>
  46. </body>
  47. </html>