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

📄 todaylongionupdate.aspx

📁 程序中带有大量的实例,采用多种方式优化代码,这初学者很好的学习资料
💻 ASPX
字号:
<%@ Page language="c#" Codebehind="TodayLongionUpdate.aspx.cs" AutoEventWireup="false" Inherits="Web.TodayLongionUpdate" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>TodayLongionUpdate</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<table style="WIDTH: 646px" align="center">
				<tr>
					<td align="center" colspan="3" rowspan="2">
						<asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="XX-Large" ForeColor="#0000C0"
							Text="每日一言修改" Width="642px"></asp:Label></td>
				</tr>
				<tr>
				</tr>
				<tr>
					<td><FONT face="宋体"></FONT>
					</td>
					<td>
					</td>
					<td>
					</td>
				</tr>
			</table>
			<table border="1" align="center">
				<tr>
					<td style="WIDTH: 177px; HEIGHT: 21px">
						<asp:Label ID="Label2" runat="server" Text="编号:" Width="164px"></asp:Label></td>
					<td style="WIDTH: 459px; HEIGHT: 21px" colspan="2">
						<asp:TextBox ID="TextBox1" runat="server" CausesValidation="True" Width="177px"></asp:TextBox>
						<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox1" ErrorMessage="4为数值"
							ValidationExpression="[0-9]{4}">4为数值</asp:RegularExpressionValidator></td>
				</tr>
				<tr>
					<td style="WIDTH: 177px">
						<asp:Label ID="Label3" runat="server" Text="内容:" Width="164px"></asp:Label></td>
					<td style="WIDTH: 459px" colspan="2">
						<asp:TextBox ID="TextBox2" runat="server" Width="452px" Height="65px" TextMode="MultiLine"></asp:TextBox></td>
				</tr>
			</table>
			<br>
			<asp:Label ID="Label4" runat="server" Text="    " Width="644px"></asp:Label><br>
			<br>
			<table align="center">
				<tr>
					<td style="WIDTH: 159px; HEIGHT: 25px">
					</td>
					<td style="WIDTH: 213px; HEIGHT: 25px"><FONT face="宋体">
							<asp:Button id="Button3" runat="server" Text="检索"></asp:Button></FONT><FONT face="宋体">&nbsp;
							<asp:Button id="Button1" runat="server" Text="修改"></asp:Button>&nbsp;</FONT><FONT face="宋体">
							<asp:Button id="Button2" runat="server" Text="取消"></asp:Button>&nbsp;
							<asp:Button id="Button4" runat="server" Text="返回"></asp:Button></FONT></td>
					<td style="WIDTH: 220px; HEIGHT: 25px">
					</td>
				</tr>
				<tr>
					<td colspan="3">
						<asp:DataGrid id="DataGrid1" runat="server" Width="621px" CellPadding="4" AutoGenerateColumns="False"
							BackColor="White" AllowPaging="True" BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px">
							<SelectedItemStyle Font-Bold="True" ForeColor="#663399" BackColor="#FFCC66"></SelectedItemStyle>
							<ItemStyle ForeColor="#330099" BackColor="White"></ItemStyle>
							<HeaderStyle Font-Bold="True" HorizontalAlign="Center" ForeColor="#FFFFCC" BackColor="#990000"></HeaderStyle>
							<FooterStyle ForeColor="#330099" BackColor="#FFFFCC"></FooterStyle>
							<Columns>
								<asp:BoundColumn DataField="LongionId" HeaderText="编号">
									<HeaderStyle Width="100px"></HeaderStyle>
								</asp:BoundColumn>
								<asp:BoundColumn DataField="Longion" HeaderText="每日一言">
									<HeaderStyle Width="500px"></HeaderStyle>
								</asp:BoundColumn>
							</Columns>
							<PagerStyle HorizontalAlign="Center" ForeColor="#330099" BackColor="#FFFFCC"></PagerStyle>
						</asp:DataGrid>
					</td>
				</tr>
				<tr>
					<td style="WIDTH: 159px">
					</td>
					<td style="WIDTH: 213px">
					</td>
					<td style="WIDTH: 220px">
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>

⌨️ 快捷键说明

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