⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sectiongeneral.ascx

📁 一个ASP.NET下的中文内容管理和社区系统
💻 ASCX
字号:
<%@ Control Language="c#" CodeBehind="SectionGeneral.ascx.cs" AutoEventWireup="false" Inherits="ASPNET.StarterKit.Communities.Admin.EditSections.SectionGeneral" %>
<%@ Register TagPrefix="community" Namespace="ASPNET.StarterKit.Communities" Assembly="ASPNET.StarterKit.Communities" %>
<%@ import Namespace="ASPNET.StarterKit.Communities" %>
<script runat="server">

</script>
<!-- Section Name -->
<p>
	<table class="formSection">
		<tr>
			<td class="formSectionHeader">
				<img border="0" src="../help/help.gif" align="right" onmouseover="showHelp('helpName')"
					onmouseout="hideHelp()"> &nbsp;区域名称
				<asp:RequiredFieldValidator ControlToValidate="txtName" text="*" ErrorMessage="You must enter a section name"
					Runat="server" id="RequiredFieldValidator1" />
			</td>
		</tr>
		<tr>
			<td class="formSectionHelp">
				区域名称用于创建区域路径。
			</td>
		</tr>
		<tr>
			<td class="formSectionContents">
				<asp:TextBox id="txtName" columns="30" maxlength="50" runat="Server" />
			</td>
		</tr>
	</table>
</p>
<div id="helpName" style="DISPLAY:none">
	区域名称用于创建区域路径。例如,如果您命名一个区域为 <i>articles</i> ,那么该区域的路径为 <i>/articles/default.aspx</i>
	<p>
		避免在名字中使用特殊字符,如逗号,句号或者空格等。.</p>
</div>
<!-- Section Title -->
<p>
	<table class="formSection">
		<tr>
			<td class="formSectionHeader">
				<img border="0" src="../help/help.gif" align="right" onmouseover="showHelp('helpTitle')"
					onmouseout="hideHelp()"> &nbsp;区域标题
				<asp:RequiredFieldValidator ControlToValidate="txtTitle" text="*" ErrorMessage="You must enter a section title"
					Runat="server" id="RequiredFieldValidator2" />
			</td>
		</tr>
		<tr>
			<td class="formSectionHelp">
				区域标题显示在浏览器的标题栏和页面中。
			</td>
		</tr>
		<tr>
			<td class="formSectionContents">
				<asp:TextBox id="txtTitle" columns="50" maxlength="100" runat="Server" />
			</td>
		</tr>
	</table>
</p>
<div id="helpTitle" style="DISPLAY:none">
	区域标题显示在浏览器的标题栏和页面中。当区域有父区域显示时,区域标题也用于区域的标题。
</div>
<!-- Section Menu Title -->
<p>
	<table class="formSection">
		<tr>
			<td class="formSectionHeader">
				<img border="0" src="../help/help.gif" align="right" onmouseover="showHelp('helpMenuTitle')"
					onmouseout="hideHelp()"> &nbsp;区域菜单标题
				<asp:RequiredFieldValidator ControlToValidate="txtMenuTitle" text="*" ErrorMessage="You must enter a section menu title"
					Runat="server" id="RequiredFieldValidator3" />
			</td>
		</tr>
		<tr>
			<td class="formSectionHelp">
				区域菜单标题显示在菜单中。&nbsp;
			</td>
		</tr>
		<tr>
			<td class="formSectionContents">
				<asp:TextBox id="txtMenuTitle" columns="30" maxlength="50" runat="Server" />
			</td>
		</tr>
	</table>
</p>
<div id="helpMenuTitle" style="DISPLAY:none">
	区域菜单标题显示在菜单中。使菜单标题尽量短,因为长标题可能破坏特定主题的页面布局。
</div>
<!-- Section Description -->
<p>
	<table class="formSection">
		<tr>
			<td class="formSectionHeader">
				<img border="0" src="../help/help.gif" align="right" onmouseover="showHelp('helpDescription')"
					onmouseout="hideHelp()"> &nbsp;区域描述
				<asp:RequiredFieldValidator ControlToValidate="txtDescription" Text="*" ErrorMessage="You must enter a description"
					runat="server" id="RequiredFieldValidator4" />
				<community:LengthValidator ControlToValidate="txtDescription" MaxLength="500" Text="*" ErrorMessage="Description must be less than 500 characters"
					runat="server" id="LengthValidator1" />
			</td>
		</tr>
		<tr>
			<td class="formSectionHelp">
				区域描述显示于父区域中。
			</td>
		</tr>
		<tr>
			<td class="formSectionContents">
				<asp:TextBox id="txtDescription" textmode="MultiLine" columns="50" rows="3" Runat="Server" />
			</td>
		</tr>
	</table>
</p>
<div id="helpDescription" style="DISPLAY:none">
	当区域列举于父页面时,显示区域描述。当区域作为网络服务时,区域描述也将被显示。
</div>
<DIV style="DISPLAY: none">&nbsp;</DIV>
<!-- Section Type -->
<asp:panel id="pnlType" runat="server">
	<P>
		<TABLE class="formSection">
			<TR>
				<TD class="formSectionHeader"><IMG onmouseover="showHelp('helpType')" onmouseout="hideHelp()" src="../help/help.gif"
						align="right" border="0">&nbsp;区域类型
				</TD>
			</TR>
			<TR>
				<TD class="formSectionHelp">选择包含在本区域内的内容类型
				</TD>
			</TR>
			<TR>
				<TD class="formSectionContents">
					<asp:radiobuttonlist id="radlPageTypes" runat="server" font-size="12px"></asp:radiobuttonlist></TD>
			</TR>
		</TABLE>
	</P>
</asp:panel>
<div id="helpType" style="DISPLAY:none">
	区域类型决定包含在本区域内的内容类型。例如,选择<B>Articles Section</B>来创建包含文章的区域。
	<p>
		注意:创建区域后,您不能改变区域类型。</p>
</div>
<!-- Parent Section -->
<asp:Panel id="pnlParentSection" Runat="Server">
	<P>
		<TABLE class="formSection">
			<TR>
				<TD class="formSectionHeader"><IMG onmouseover="showHelp('helpParentSection')" onmouseout="hideHelp()" src="../help/help.gif"
						align="right" border="0">&nbsp;父区域
				</TD>
			</TR>
			<TR>
				<TD class="formSectionHelp" height="20">为本区域选择父区域&nbsp;</TD>
			</TR>
			<TR>
				<TD class="formSectionContents">
					<asp:dropdownlist id="dropParentSections" runat="server"></asp:dropdownlist></TD>
			</TR>
		</TABLE>
	</P>
</asp:Panel>
<div id="helpParentSection" style="DISPLAY:none">
	您可以通过选择父区域使当前区域成为另一个区域的子区域。例如,你可能想把多个文章区域(article sections)放在一个父区域下面。
	<p>
		只有主区域和父区域类型的区域可以作为父区域。</p>
</div>
<!-- Section Enabled -->
<p>
	<table class="formSection">
		<tr>
			<td class="formSectionHeader">
				<img border="0" src="../help/help.gif" align="right" onmouseover="showHelp('helpIsEnabled')"
					onmouseout="hideHelp()"> &nbsp;区域屏蔽
			</td>
		</tr>
		<tr>
			<td class="formSectionHelp">
				清除选择框以隐藏区域&nbsp;
			</td>
		</tr>
		<tr>
			<td class="formSectionContents">
				<asp:checkbox id="chkIsEnabled" runat="server" />
			</td>
		</tr>
	</table>
</p>
<div id="helpIsEnabled" style="DISPLAY:none">
	当您屏蔽一个区域时,区域将不再显示。屏蔽区域不会删除该区域内容。
</div>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -