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

OA系统

开发平台:

ASP/ASPX

  1. <%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" >
  4. <head id="Head1" runat="server">
  5.     <title>网络文件夹</title>
  6. </head>
  7. <body>
  8.     <form id="form1" runat="server">
  9.     <div>
  10.         <asp:DropDownList ID="DropDownList1" runat="server" Width="200px" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
  11.             <asp:ListItem Value="-1">选择功能</asp:ListItem>
  12.             <asp:ListItem Value="0">上传限制</asp:ListItem>
  13.             <asp:ListItem Value="1">上传文件</asp:ListItem>
  14.             <asp:ListItem Value="2">管理文件</asp:ListItem>
  15.         </asp:DropDownList>
  16.         <asp:Label ID="lbl_FolderInfo" runat="server"></asp:Label><br />
  17.         <asp:MultiView ID="MultiView1" runat="server">
  18.             <!--上传限制界面开始-->
  19.             <asp:View ID="view_Configure" runat="server">
  20.                 允许上传文件的类型:
  21.                 <asp:BulletedList ID="bl_TileTypeLimit" runat="server">
  22.                 </asp:BulletedList>
  23.                 允许上传单个文件的大小:
  24.                 <asp:Label ID="lab_FileSizeLimit" runat="server" Text=""></asp:Label>
  25.              </asp:View>
  26.              <asp:View ID="view_Upload" runat="server">
  27.                  <asp:FileUpload ID="FileUpload" runat="server" Width="400"/><br />
  28.                  <asp:Button ID="btn_Upload" runat="server" Text="上传文件" OnClick="btn_Upload_Click" />
  29.              </asp:View>
  30.              <!--管理文件开始-->
  31.              <asp:View ID="view_Manage" runat="server">
  32.                 <table cellpadding="5" cellspacing="0" border="0">
  33.                     <tr>
  34.                         <td style="width: 311px; height: 321px">
  35.                             <!--启用了AutoPostBack-->
  36.                             <asp:ListBox ID="lb_FileList" runat="server" AutoPostBack="True" Height="300px" Width="300px" OnSelectedIndexChanged="lb_FileList_SelectedIndexChanged"></asp:ListBox></td>
  37.                         <td valign="top" style="width: 134px; height: 321px;">
  38.                             <asp:Label ID="lbl_FileDescription" runat="server"></asp:Label></td>
  39.                     </tr>
  40.                 </table>
  41.                 <asp:Button ID="btn_DownLoad" runat="server" Text="下载文件" OnClick="btn_DownLoad_Click" />
  42.                 <!--在删除前给予确定-->
  43.                 <asp:Button ID="btn_Delete" runat="server" Text="删除文件" OnClientClick="return confirm('确定删除文件!')" OnClick="btn_Delete_Click" /><br />
  44.                 <asp:TextBox ID="tb_FileNewName" runat="server" Width="300px"></asp:TextBox>
  45.                 <asp:Button ID="btn_Rename" runat="server" Text="对文件重命名" OnClick="btn_Rename_Click" />
  46.             </asp:View>
  47.         </asp:MultiView>
  48.     </div>
  49.         <br />
  50.     </form>
  51. </body>
  52. </html>