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

📄 webvote.aspx

📁 ASP C#代码实例 适合初学人士学习使用
💻 ASPX
字号:
<%@ Page language="c#" Codebehind="WebVote.aspx.cs" AutoEventWireup="false" Inherits="Example_10_4.WebVote" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>Example_10_4:网上投票系统</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">
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<table width="80%" align="center">
				<tr>
					<td align="center"><asp:datagrid id="VoteList" CssClass="Normal" Runat="server" AutoGenerateColumns="False" DataKeyField="VoteID">
							<Columns>
								<asp:TemplateColumn ItemStyle-Width="200">
									<ItemTemplate>
										<%# DataBinder.Eval(Container.DataItem,"Item")%>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn ItemStyle-Width="100">
									<ItemTemplate>
										<asp:CheckBox ID="VoteCheck" Runat="server"></asp:CheckBox>
									</ItemTemplate>
								</asp:TemplateColumn>
							</Columns>
						</asp:datagrid></td>
				</tr>
				<tr>
					<td align="center"><asp:button id="VoteBtn" Runat="server" Width="100" Text="我要投票"></asp:button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:button id="ShowVote" Runat="server" Width="100" Text="查看投票"></asp:button></td>
				</tr>
				<tr>
					<td><asp:Label ID="VoteMessage" Runat="server" Visible="False" ForeColor="red" Font-Bold="True">投票成功!!!</asp:Label></td>
				</tr>
			</table>
		</form>
	</body>
</HTML>

⌨️ 快捷键说明

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