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

📄 classadd.ascx

📁 这是我编的一小软件。请等级等待指教。呵呵。ASP的
💻 ASCX
字号:
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="ClassAdd.ascx.cs" Inherits="Seaskyer.WebApp.skyNews.Pages.AdminMSC.ClassAdd" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<table width="98%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="mframe-t-left"></td>
		<td class="mframe-t-mid"><span class="mframe-t-text"><%= lang.AppName%></span></td>
		<td class="mframe-t-right"></td>
	</tr>
</table>
<table width="98%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="mframe-m-left"></td>
		<td class="mframe-m-mid">
			<asp:Label width="100%" style="TEXT-ALIGN:center" id="label1" runat="server" Visible="False" />
			<input type="hidden" id="classid" runat="server">
			<table cellpadding="3" cellspacing="0" width="95%" align="center">
				<tr>
					<td width="60">
						分类名:
					</td>
					<td>
						<asp:TextBox Columns="25" MaxLength="15" id="className" runat="server" />
						<asp:RequiredFieldValidator id="RequiredFieldValidator" ControlToValidate="className" ErrorMessage="*" Display="Dynamic"
							runat="server" />
						<asp:RegularExpressionValidator id="RegularExpressionValidator" runat="server" ControlToValidate="className" ValidationExpression="[^']+"
							ErrorMessage="*" Display="Dynamic" />
					</td>
				</tr>
				<tr>
					<td>
						父级分类:
					</td>
					<td>
						<asp:DropDownList id="parentID" runat="server">
							<asp:ListItem Value="0">作为一级分类</asp:ListItem>
						</asp:DropDownList>
						<asp:RequiredFieldValidator id="Requiredfieldvalidator2" ControlToValidate="parentID" ErrorMessage="*" Display="Dynamic"
							runat="server" />
					</td>
				</tr>
				<tr>
					<td>
						站外链接:
					</td>
					<td>
						<asp:TextBox id="cUrl" Columns="40" maxLength="200" runat="server" />
					</td>
				</tr>
				<tr>
					<td>
						链接样式:
					</td>
					<td>
						<asp:DropDownList id="linkColor" runat="server">
							<asp:ListItem Value="">无</asp:ListItem>
						</asp:DropDownList>
					</td>
				</tr>
				<tr>
					<td>
						子类最新新闻显示数:
					</td>
					<td>
						<asp:TextBox id="cBindNum" maxlength="2" Columns="3" Style="TEXT-ALIGN:right" runat="server" />
						<asp:RequiredFieldValidator ControlToValidate="cBindNum" ErrorMessage="*" Display="Dynamic" runat="server" ID="Requiredfieldvalidator1" />
						<asp:RegularExpressionValidator ControlToValidate="cBindNum" ValidationExpression="\d{1,2}" ErrorMessage="*" Display="Dynamic"
							runat="server" ID="Regularexpressionvalidator1" />
					</td>
				</tr>
				<tr>
					<td>
						分类页列表显示方式:
					</td>
					<td>
						<asp:DropDownList id="listStyle" runat="server">
							<asp:ListItem Value="0">继承列表方式</asp:ListItem>
							<asp:ListItem Value="1">列表方式</asp:ListItem>
							<asp:ListItem Value="2">表格方式</asp:ListItem>
							<asp:ListItem Value="3">简介方式</asp:ListItem>
							<asp:ListItem Value="4">图片简介式</asp:ListItem>
							<asp:ListItem Value="5">DataList绑定(图片模式)</asp:ListItem>
						</asp:DropDownList>
					</td>
				</tr>
				<tr>
					<td>
						分类页模板:
					</td>
					<td>
						<asp:DropDownList id="cTempid" runat="server">
							<asp:ListItem Value="0">继承分类模板</asp:ListItem>
						</asp:DropDownList>
					</td>
				</tr>
				<tr>
					<td>
						新闻信息页模板:
					</td>
					<td>
						<asp:DropDownList id="newsTempID" runat="server">
							<asp:ListItem Value="0">继承新闻模板</asp:ListItem>
						</asp:DropDownList>
					</td>
				</tr>
				<tr>
					<td>
						新窗口打开:
					</td>
					<td>
						<asp:DropDownList id="targetMethod" runat="server">
							<asp:ListItem Value="_self">_self</asp:ListItem>
							<asp:ListItem Value="_blank">_blank</asp:ListItem>
							<asp:ListItem Value="_top">_top</asp:ListItem>
							<asp:ListItem Value="_parent">_parent</asp:ListItem>
							<asp:ListItem Value="_search">_search</asp:ListItem>
						</asp:DropDownList>
					</td>
				</tr>
				<tr>
					<td>
						可以添加新闻:
					</td>
					<td>
						<asp:RadioButtonList ID="canAdd" Width="100px" RepeatDirection="Horizontal" RepeatLayout="Table" Runat="server">
							<asp:ListItem Value="1" Selected="True">是</asp:ListItem>
							<asp:ListItem Value="0">否</asp:ListItem>
						</asp:RadioButtonList>
					</td>
				</tr>
				<tr>
					<td>
						显示在分类栏:
					</td>
					<td>
						<asp:RadioButtonList ID="cInBar" Width="100px" RepeatDirection="Horizontal" RepeatLayout="Table" Runat="server">
							<asp:ListItem Value="1" Selected="True">是</asp:ListItem>
							<asp:ListItem Value="0">否</asp:ListItem>
						</asp:RadioButtonList>
					</td>
				</tr>
				<tr>
					<td>
						显示在导航栏:
					</td>
					<td>
						<asp:RadioButtonList ID="cInNav" Width="100px" RepeatDirection="Horizontal" RepeatLayout="Table" Runat="server">
							<asp:ListItem Value="1" Selected="True">是</asp:ListItem>
							<asp:ListItem Value="0">否</asp:ListItem>
						</asp:RadioButtonList>
					</td>
				</tr>
				<tr>
					<td>
						子类显示该类新闻:
					</td>
					<td>
						<asp:RadioButtonList ID="cBind" Width="100px" RepeatDirection="Horizontal" RepeatLayout="Table" Runat="server">
							<asp:ListItem Value="1" Selected="True">是</asp:ListItem>
							<asp:ListItem Value="0">否</asp:ListItem>
						</asp:RadioButtonList>
					</td>
				</tr>
				<tr>
					<td valign="top">
						允许阅读的会员组:<li>一个都不选择则所有人可阅读<li>按住Ctrl键可以多选或取消选择</li>
					</td>
					<td>
						<asp:ListBox id="allowGroups" Rows="6" Width="200px" SelectionMode="Multiple" runat="server" />
					</td>
				</tr>
				<tr>
					<td valign="top">
						网站顶部代码:<br>
						(支持HTML,如果置空,则继承系统设置中的内容)
					</td>
					<td>
						<asp:TextBox id="HeadCode" TextMode="MultiLine" Rows="5" Columns="60" runat="server" />
					</td>
				</tr>
				<tr>
					<td valign="top">
						页面内广告:<br>
						(支持HTML,Javascript脚本)
					</td>
					<td>
						<asp:TextBox id="PageCode" TextMode="MultiLine" Rows="5" Columns="60" runat="server" />
					</td>
				</tr>
				<tr>
					<td valign="top">
						网站底部代码:<br>
						(支持HTML,如果置空,则继承系统设置中的内容)
					</td>
					<td>
						<asp:TextBox id="FootCode" TextMode="MultiLine" Rows="5" Columns="60" runat="server" />
					</td>
				</tr>
				<tr>
					<td colspan="2" align="center">
						<asp:Button id="Button1" OnClick="Button1_OnClick" runat="server" />
					</td>
				</tr>
			</table>
		</td>
		<td class="mframe-m-right"></td>
	</tr>
</table>
<table width="98%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="mframe-b-left"></td>
		<td class="mframe-b-mid">&nbsp;</td>
		<td class="mframe-b-right"></td>
	</tr>
</table>
<!-- #Include File="Footer.Inc" -->

⌨️ 快捷键说明

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