温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:多用户文件上传管理程序源码
当前文件:
FileSystem/admin.aspx,打开代码结构图
FileSystem/admin.aspx,打开代码结构图1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="admin.aspx.cs" Inherits="admin" %> 2
3
<%@ Register Src="userfile.ascx" TagName="userfile" TagPrefix="uc2" %> 4
5
<%@ Register Src="usermanage.ascx" TagName="usermanage" TagPrefix="uc1" %> 6
7
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 8
<html xmlns="http://www.w3.org/1999/xhtml" > 9
<head> 10
<title>文件管理系统</title> 11
<style type="text/css"> 12
body { 13
font-size:13px;} 14
#xian { 15
position:absolute; 16
width:350px; 17
height:120px; 18
left:50%; 19
top:50%; 20
margin:-60px 0px 0px -150px; 21
background-color:#999999; 22
z-index:2; 23
} 24
#ddiv { 25
position:absolute; 26
left:0px; 27
top:0px; 28
z-index:1; 29
background-color:#CCCCCC; 30
filter: Alpha(Opacity=40); 31
height: 100%; 32
width: 100%; 33
} 34
</style> 35
</head> 36
<body style="text-align: center"> 37
<script type="text/javascript" defer="defer"> 38
function $(ele){ return document.getElementById(ele)} 39
function xian(){ 40
$("ddiv").style.display = $("xian").style.display = $("xian").style.display==""?"none":""; 41
} 42
</script> 43
<form id="form1" runat="server"> 44
<div> 45
<asp:Button ID="button1" runat="server" Height="40px" OnClick="button1_Click" Text="用户管理" 46
Width="105px" /> <asp:Button ID="button2" runat="server" Height="40px" OnClick="button2_Click" 47
Text="文件管理" Width="105px" /> 48
当前用户:<asp:Label ID="uname" runat="server"></asp:Label> 49
<asp:Button ID="Button3" runat="server" OnClick="Button3_Click" Text="注 销" /> 50
<input id="Button4" type="button" value="修改密码" onclick="xian()" /><br /><asp:Label ID="Label2" runat="server" Text=""></asp:Label> 51
<div id="ddiv" style="display:none"></div> 52
<div id="xian" style="display:none"><br /><strong>修改密码(不更改不用填)</strong><br /> 53
请输入您的旧密码:<asp:TextBox ID="pass1" runat="server"></asp:TextBox><br /> 54
请输入你的新密码:<asp:TextBox ID="pass2" runat="server"></asp:TextBox><br /> 55
<asp:Button ID="Button5" runat="server" OnClick="Button5_Click" Text="更 新" /> 56
<input id="Button6" type="button" value="关 闭" onclick="xian()" /></div> 57
<uc1:usermanage ID="Usermanage1" runat="server" Visible="false" /> 58
</div> 59
<asp:Panel ID="Panel1" runat="server" Height="152px" Visible="false" Width="592px"> 60
<uc2:userfile ID="Userfile1" runat="server" /> 61
</asp:Panel> 62
</form> 63
</body> 64
</html> 65




body
font-size
position
