📄 default2.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<%--//引用自定义控件--%>
<%@ Register Namespace="AspNet.CS.Controls" TagPrefix="aspSample" %>
<!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 id="Head1" runat="server">
<script runat="server">
void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
WebPartManager1.DisplayMode = WebPartManager.EditDisplayMode;
}
</script>
</head>
<body>
<form id="Form1" runat="server">
<asp:webpartmanager id="WebPartManager1" runat="server" />
<asp:webpartzone id="WebPartZone1" runat="server" title="Zone1" PartChromeType="TitleAndBorder" WebPartVerbRenderMode="TitleBar">
<parttitlestyle font-bold="true" ForeColor="#3300cc" />
<partstyle borderwidth="1px" borderstyle="Solid" bordercolor="#81AAF2" />
<zonetemplate>
<aspSample:TextWebPart runat="server" id="textwebpart" title = "文本框设置标题" Height="82px" Width="327px" />
</zonetemplate>
<MinimizeVerb Text="最小化" />
<RestoreVerb Text="最大化" />
<CloseVerb Text="关闭" />
</asp:webpartzone>
<asp:EditorZone ID="EditorZone1" runat="server">
<ZoneTemplate>
<asp:PropertyGridEditorPart ID="PropertyGridEditorPart1" runat="server" />
</ZoneTemplate>
</asp:EditorZone>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -