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

📄 addcontent.aspx

📁 asp开发的项目管理系统,能够跟进工程进度
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddContent.aspx.cs" Inherits="Content_Admin_AddContent" StylesheetTheme="ContentMS" Theme="ContentMS" %>

<!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 style="margin:0;" bgcolor="#D8E7FA">
    <form id="form1" runat="server">
    <table class="TableCss" bgcolor="#D8E7FA" cellSpacing="0" cellpadding="0" width="100%" border="1">
		<tr>
			<td background="../../Images/HT_top.jpg" colspan="2" height="25">
				<table height="25" cellpadding="0" cellspacing="0" border="0">
					<tr>
						<td height="25" valign="middle" align="center">&nbsp;&nbsp;&nbsp;<img src="../../Images/HT_top_ioc.GIF" /></td>
						<td><font class="AdminTitle">&nbsp;&nbsp;<b>增加新的内容</b></font></td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td width="150" align="right">
				上级频道:</td>
			<td style="width: 533px"><asp:Label ID="CurCatalog" runat="server"></asp:Label></td>
		</tr>
		<tr>
			<td width="150" align="right">
				标题:</td>
			<td><asp:TextBox ID="Name" runat="server" Width="300px"></asp:TextBox><asp:RequiredFieldValidator
					ID="RequiredFieldValidator1" runat="server" ControlToValidate="Name" ErrorMessage="标题不能为空。"></asp:RequiredFieldValidator></td>
		</tr>
		<tr>
			<td width="150" align="right">
				内容类型:</td>
			<td>
				<asp:DropDownList ID="dlType" runat="server" AutoPostBack="True" OnSelectedIndexChanged="dlType_SelectedIndexChanged"
					Width="150px">
					<asp:ListItem Selected="True" Value="0">普通内容</asp:ListItem>
					<asp:ListItem Value="1">链接类型</asp:ListItem>
				</asp:DropDownList></td>
		</tr>		
		<tr>
			<td width="150" align="right" valign="top"><asp:Label ID="lbDesn" runat="server" Text="详细内容"></asp:Label>:</td>
			<td><asp:TextBox ID="tbDesn" runat="server" Width="400px" Height="300px" TextMode="MultiLine"></asp:TextBox></td>
		</tr>		
		<tr>
			<td width="150" align="right"></td>
			<td><asp:Button ID="AddBtn" runat="server" CssClass="ButtonCss" Text="添加新的内容" CommandName="add" OnCommand="Btn_Command" Width="145px" Enabled="False"  />
			<asp:CheckBox ID="cbDocument" runat="server" Text="添加文章附件或图片" AutoPostBack="True" OnCheckedChanged="cbDocument_CheckedChanged" Enabled="False" /></td>
		</tr>
		<tr>
			<td width="150" align="right" valign="top"></td>
			<td>
				<asp:GridView ID="DocView" runat="server" SkinID="gridviewskin" Caption="附件或图片列表" DataKeyNames="ID" OnRowCommand="DocView_RowCommand" OnRowDeleting="DocView_RowDeleting" OnRowDataBound="DocView_RowDataBound">
					<Columns>						
						<asp:TemplateField HeaderText="标题">
							<ItemTemplate>
								<a href='../../<%#Eval("Url") %>'><%#Eval("Name") %></a>
							</ItemTemplate>
							<ItemStyle HorizontalAlign="Left" />
							<HeaderStyle Width="40%" />							
						</asp:TemplateField>						
						<asp:TemplateField  HeaderText="类型">
							<ItemTemplate>
								<asp:Image ID="Attachment" runat="server" ImageUrl='<%# FormatContentdpFlag((short)Eval("dpFlag")) %>' />
							</ItemTemplate>
							<ItemStyle HorizontalAlign="Center" />
							<HeaderStyle Width="10%" HorizontalAlign="Center" />
						</asp:TemplateField>						
						<asp:TemplateField HeaderText="操作">
							<ItemTemplate>
								<asp:ImageButton ID="DeleteBtn" runat="server" CommandName="delete" ImageUrl="~/Images/delete.gif" AlternateText="删除文件夹" CommandArgument='<%# Eval("ID") %>' />&nbsp;&nbsp;&nbsp;
								</ItemTemplate>
							<ItemStyle HorizontalAlign="Center" />
							<HeaderStyle Width="10%" HorizontalAlign="Center" />
						</asp:TemplateField>					
					</Columns>
				</asp:GridView>				
		    </td>
		</tr>
		<tr><td width="150">&nbsp;</td><td>
			<asp:Panel runat="server" ID="pFile" Width="100%" Visible="False">
				<asp:RadioButtonList ID="rbFileType" RepeatDirection="Horizontal" runat="server" CssClass="GbText">
					<asp:ListItem Text="附件类型" Value="1" Selected="True"></asp:ListItem>
					<asp:ListItem Text="图片类型" Value="2"></asp:ListItem>
				</asp:RadioButtonList>
				<asp:TextBox ID="tbDocName" runat="server" Width="300">默认名称</asp:TextBox>(附件或图片名称)<asp:RequiredFieldValidator
					ID="rfDocName" runat="server" ControlToValidate="tbDocName" ErrorMessage="名称不能为空。"></asp:RequiredFieldValidator><br />
				<asp:FileUpload ID="fuFile" runat="server" Width="400px" CssClass="ButtonCss" Visible="False" />				
				<asp:Button ID="btnUpload" runat="server" SkinID="DefaultButtonSkin" Text="上载文件"
				Visible="False" OnClick="btnUpload_Click" />
			</asp:Panel>
			</td></tr>
		<tr><td width="150" style="height:100">&nbsp;</td><td style="height:100; width: 533px;">&nbsp;</td></tr>
		<tr>
			<td align="left" width="150" style="height: 22px"></td>
			<td><asp:Button ID="ReturnBtn" runat="server" CssClass="ButtonCss" Text="返回" CausesValidation="False" CommandName="return" OnCommand="Btn_Command" Width="80px" SkinID="DefaultButtonSkin"  /></td>
		</tr>
	</table>
    </form>
</body>
</html>

⌨️ 快捷键说明

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