温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:替某公司写的一个小论坛(供新人参考)
当前文件:
lingdaBBS/MasterPage.master[3K,2009-6-12 11:47:01],打开代码结构图
lingdaBBS/MasterPage.master[3K,2009-6-12 11:47:01],打开代码结构图1<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %> 2
3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 4
5
<html xmlns="http://www.w3.org/1999/xhtml" > 6
<head runat="server"> 7
<title>无标题页</title> 8
<link rel="stylesheet" href="~/CSS/Style.css" /> 9
</head> 10
<body> 11
<form id="form1" runat="server"> 12
<div> 13
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="font-size:12px;"> 14
<tr> 15
<td> 16
<table width="100%" border="0" cellspacing="0" cellpadding="0"> 17
<tr> 18
<td width="0%"><img src="Images/f01.gif" width="267" height="110" /></td> 19
<td width="100%" bgcolor="#F00000"><img src="Images/f02.gif" width="275" height="110" /></td> 20
</tr> 21
</table> 22
</td> 23
</tr> 24
</table> 25
<table width="100%"> 26
<tr> 27
<td> 28
<asp:Panel ID="Panel1" runat="server" Height="25px" Width="100%"> 29
<table width="100%" style="background-color:#f0f0f0;" border="0" cellpadding="0" cellspacing="0"> 30
<tr> 31
<td width="30%" style="height: 25px"> 32
<div>您尚未<a href="#" onclick="goLogin()">登录</a> <a href="Register.aspx">注册</a></div> 33
</td> 34
<td align="right" width="100%" style="height: 25px"> 35
<div> 36
<asp:Label ID="lblInfo" runat="server" Text="Label" Width="122px"></asp:Label> 37
<asp:TextBox ID="txtName" runat="server" Width="80px" Text="用户名"></asp:TextBox> 38
<asp:TextBox ID="txtPwd" runat="server" Width="80px" Text="密码"></asp:TextBox> 39
<asp:Button ID="btnLogin" runat="server" Text="快速登录" Width="80px" OnClick="btnLogin_Click" /> </div> 40
</td> 41
</tr> 42
</table> 43
</asp:Panel> 44
<asp:Panel ID="Panel2" runat="server" Height="25px" Width="100%"> 45
<table width="100%" style="background-color:#f5f5f5;" border="0" cellpadding="0" cellspacing="0"> 46
<tr> 47
<td style="height: 37px"> 48
<div>>> <%=Session["UserName"].ToString() %> 欢迎您的光临! 49
</div> 50
</td> 51
52
</tr> 53
</table> 54
</asp:Panel> 55
</td> 56
</tr> 57
</table> 58
</div> 59
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"> 60
</asp:ContentPlaceHolder> 61
</form> 62
</body> 63
</html> 64




