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

📄 addtopnews.aspx

📁 一个电子商务网源码
💻 ASPX
字号:
<%@ Page language="c#" Codebehind="AddTopNews.aspx.cs" validateRequest="false" AutoEventWireup="True" Inherits="web.Admin.AddTopNews" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>添加头条新闻</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<style type="text/css">TD.font1 { FONT-SIZE: 12px }
		</style>
		<SCRIPT language="JavaScript">
function checkEmpty(ctrl)
{
	if(ctrl.value.length<=0)
	{alert("输入中不能有空!");return false;}
	else{return true;}
}
function btnOpen_Click()
{
	document.MainForm.TextBox2.value =document.MainForm.TextBox2.value + "<img src=\"" + window.showModalDialog("updown.aspx") + "\" width=\"360\" height=\"280\" border=\"0\">";
}
		</SCRIPT>
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="MainForm" method="post" runat="server">
			<table cellSpacing="0" cellPadding="0" width="760" border="0">
				<TR>
					<td colSpan="4"><font color="#0000ff">添加头条新闻</font></td>
				</TR>
				<tr style="PADDING-TOP: 6px">
					<td align="right" width="60">标题:</td>
					<td style="PADDING-LEFT: 5px" width="280"><asp:textbox id="TextBox1" runat="server" Width="100%"></asp:textbox></td>
					<td style="WIDTH: 110px" align="left" width="110"><asp:dropdownlist id="DropDownList1" 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">MP3频道</asp:ListItem>
							<asp:ListItem Value="5">办公外设频道</asp:ListItem>
						</asp:dropdownlist></td>
					<TD align="left" width="300"><asp:checkbox id="CheckBox2" runat="server" Text="首页头条" AutoPostBack="True" oncheckedchanged="CheckBox2_CheckedChanged"></asp:checkbox><asp:checkbox id="CheckBox1" runat="server" Text="头版头条"></asp:checkbox><asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" ErrorMessage="请选择栏目" ControlToValidate="DropDownList1"
							InitialValue="0"></asp:requiredfieldvalidator></TD>
				</tr>
				<tr>
					<td class="font1" colSpan="3" height="18"><asp:panel id="Panel1" Width="100%" Runat="server" Visible="False">头条显示图片:&nbsp;<INPUT id="up1" style="WIDTH: 288px; HEIGHT: 22px" type="file" size="28" runat="server"><FONT face="宋体">&nbsp;
							</FONT>
<asp:button id="Button1" runat="server" Text="上传" onclick="Button1_Click"></asp:button></asp:panel></td>
					<TD class="font1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					</TD>
				</tr>
				<tr>
					<td colSpan="4" height="18"><FONT face="宋体"></FONT></td>
				</tr>
				<TR>
					<TD vAlign="top" width="60">正文:</TD>
					<td style="WIDTH: 416px" width="416" bgColor="#cccccc" colSpan="2" height="20"><asp:imagebutton id="ImageButton1" runat="server" Width="20px" ImageUrl="../Image/Admin/img.bmp"
							Height="20px" AlternateText="插入图片"></asp:imagebutton></td>
					<td width="188"></td>
				</TR>
				<TR>
					<TD width="60"><FONT face="宋体"></FONT></TD>
					<td width="700" colSpan="3"><asp:textbox id="TextBox2" runat="server" Width="416px" Height="208px" TextMode="MultiLine"></asp:textbox></td>
				</TR>
				<TR style="PADDING-TOP: 6px">
					<TD vAlign="top" width="60"></TD>
					<td width="700" colSpan="3"><asp:button id="btnAdd" runat="server" Text="添加" onclick="btnAdd_Click"></asp:button></td>
				</TR>
			</table>
		</form>
	</body>
</HTML>

⌨️ 快捷键说明

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