masterpage.master
来自「microsoft公司在进行ASP.NET 2.0培训课时课堂操作演示代码。」· MASTER 代码 · 共 80 行
MASTER
80 行
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
<!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>
</head>
<body>
<form id="form1" runat="server">
<div align=center>
<table border="0" cellpadding="0" cellspacing="0" style="width: 761px">
<tr>
<td style="width: 100px; height: 120px">
<asp:Image ID="Image1" runat="server" Height="120px" ImageUrl="~/images/003.gif"
Width="615px" /></td>
</tr>
<tr>
<td style="width: 100px">
<table border="0" cellpadding="0" cellspacing="0" style="width: 613px">
<tr>
<td valign="top">
<asp:LoginName ID="LoginName1" runat="server" FormatString="欢迎您{0}!" />
<asp:LoginStatus ID="LoginStatus1" runat="server" />
<asp:LoginView ID="LoginView1" runat="server">
<RoleGroups>
<asp:RoleGroup Roles="administrator">
<ContentTemplate>
<asp:LinkButton ID="LinkButton1" runat="server">管理员设置</asp:LinkButton>
</ContentTemplate>
</asp:RoleGroup>
<asp:RoleGroup Roles="Blogers">
<ContentTemplate>
<asp:LinkButton ID="LinkButton2" runat="server">博客设置</asp:LinkButton>
</ContentTemplate>
</asp:RoleGroup>
</RoleGroups>
</asp:LoginView>
</td>
<td valign="top">
<asp:SiteMapPath ID="SiteMapPath1" runat="server" Font-Names="Verdana" Font-Size="0.8em"
PathSeparator=" : ">
<PathSeparatorStyle Font-Bold="True" ForeColor="#990000" />
<CurrentNodeStyle ForeColor="#333333" />
<NodeStyle Font-Bold="True" ForeColor="#990000" />
<RootNodeStyle Font-Bold="True" ForeColor="#FF8000" />
</asp:SiteMapPath>
<img src="images/1x1.gif" style="width: 517px; height: 4px" /></td>
</tr>
<tr>
<td valign="top">
<asp:TreeView ID="TreeView1" runat="server" DataSourceID="SiteMapDataSource1" ImageSet="BulletedList3"
ShowExpandCollapse="False">
<ParentNodeStyle Font-Bold="False" />
<HoverNodeStyle Font-Underline="True" ForeColor="#5555DD" />
<SelectedNodeStyle Font-Underline="True" ForeColor="#5555DD" HorizontalPadding="0px"
VerticalPadding="0px" />
<NodeStyle Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" HorizontalPadding="5px"
NodeSpacing="0px" VerticalPadding="0px" />
</asp:TreeView>
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />
</td>
<td valign="top" align="left">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="width: 100px">
<img src="../images/page_16.png" style="width: 617px; height: 78px" /></td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?