masterpage1.master
来自「这是asp.net^和Visual C++Sharp编写的串并口通讯的书籍 源代」· MASTER 代码 · 共 54 行
MASTER
54 行
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage1.master.cs" Inherits="MasterPage1" %>
<script runat="server">
public void Page_Load(Object sender, EventArgs e)
{
LabelInMaster.Text = "现在时间:"+System.DateTime.Now.ToShortTimeString();
}
</script>
<!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>
<table style="border-top-style: ridge; border-right-style: ridge; border-left-style: ridge; border-bottom-style: ridge">
<tr>
<td colspan="2" style="background-image: url(image/top.jpg); width: 778px; height: 130px">
</td>
</tr>
<tr>
<td align="center" colspan="2" style="width: 778px; height: 23px; background-color: gainsboro">
<asp:Label ID="LabelInMaster" runat="server" Text="Label"></asp:Label></td>
</tr>
<tr>
<td style="width: 100px; border-top-style: groove; border-right-style: groove; border-left-style: groove; border-bottom-style: groove;">
<asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</td>
<td style="width: 100px; border-top-style: groove; border-right-style: groove; border-left-style: groove; border-bottom-style: groove;">
<asp:contentplaceholder id="Contentplaceholder2" runat="server">
</asp:ContentPlaceHolder>
</td>
</tr>
<tr>
<td align="center" colspan="2" style="height: 17px; background-color: #ccccff">
<table>
<tr>
<td style="background-image: url(image/013.bmp); width: 390px; height: 71px">
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?