📄 default.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!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">
<title>DeclarativeCatalogPart 控件</title>
</head>
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{//设置为显示模式
WebPartManager1.DisplayMode = WebPartManager.CatalogDisplayMode;
}
</script>
<body>
<form id="form1" runat="server">
<div>
<asp:WebPartManager ID="WebPartManager1" runat="server">
</asp:WebPartManager>
</div>
<table style="width: 282px">
<tr>
<td>
<asp:WebPartZone ID="WebPartZone1" runat="server">
</asp:WebPartZone>
</td>
<td>
<asp:CatalogZone ID="CatalogZone1" runat="server">
<ZoneTemplate>
<asp:DeclarativeCatalogPart ID="DeclarativeCatalogPart1" runat="server" WebPartsListUserControlPath="~/WebUserControl.ascx">
<WebPartsTemplate>
<asp:TextBox ID="TextBox1" title="姓名:" runat="server"></asp:TextBox>
</WebPartsTemplate>
</asp:DeclarativeCatalogPart>
</ZoneTemplate>
</asp:CatalogZone>
</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -