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

📄 votelist.aspx

📁 基本的投票功能
💻 ASPX
字号:
<%@ Page language="c#" Codebehind="VoteList.aspx.cs" AutoEventWireup="false" Inherits="Web.Manage.Vote.VoteList" %>
<!doctype html public "-//w3c//dtd html 4.0 transitional//en" >
<html>
	<head>
		<title>UserList</title>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
		<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"><link href="../../Lib/Css/Style.css" type="text/css" rel="stylesheet">
	</head>
	<body class="" scroll="yes" bgcolor="#d6dbef">
		<form id="Form1" method="post" runat="server">
			<table width="100%">
				<tr>
					<td width="100%">
						<asp:datagrid id="VoteDataGrid" runat="server" datakeyfield="VoteID" allowsorting="True" autogeneratecolumns="False" width="100%" cssclass="Table_03" horizontalalign="Center">
							<columns>
								<asp:templatecolumn>
									<headerstyle horizontalalign="Center" width="8%">
									</headerstyle>

									<headertemplate>
										投票ID

									</headertemplate>

									<itemtemplate>
										<%# DataBinder.Eval(Container.DataItem, "VoteID") %>

									</itemtemplate>
								</asp:templatecolumn>
								<asp:templatecolumn>
									<headerstyle horizontalalign="Center" width="55%">
									</headerstyle>

									<headertemplate>
										标题

									</headertemplate>

									<itemtemplate>
										<a href='VoteItems.aspx?VoteID=<%# DataBinder.Eval(Container.DataItem, "VoteID") %>'><img src="../../Lib/Images/news_catch_up.gif" border="0"><%# DataBinder.Eval(Container.DataItem, "Title") %></a>
										<a href='ChartView.aspx?VoteID=<%# DataBinder.Eval(Container.DataItem, "VoteID") %>'><font color="red">查看统计图</font></a>
									</itemtemplate>
								</asp:templatecolumn>
								<asp:templatecolumn>
									<headerstyle horizontalalign="Center" width="10%">
									</headerstyle>
									<itemstyle horizontalalign="Center"></itemstyle>

									<headertemplate>
										类型

									</headertemplate>

									<itemtemplate>
										<%# ((string)DataBinder.Eval(Container.DataItem, "Style")) == "Radio"?"单选":"多选" %>

									</itemtemplate>
								</asp:templatecolumn>
								<asp:templatecolumn>
									<headerstyle horizontalalign="Center" width="20%">
									</headerstyle>

									<itemstyle horizontalalign="Center">
									</itemstyle>
									<headertemplate>
										操作
									</headertemplate>
									<itemtemplate>
										<asp:button id="btnAction" commandname="DelVote" runat="server" cssclass="formstyleall" text="删除" enabled="False"></asp:button>
										<asp:button id="btnUpdate" commandname="UpdateVote" runat="server" cssclass="formstyleall" text="修改" enabled="False"></asp:button>
									</itemtemplate>
								</asp:templatecolumn>
							</columns>
						</asp:datagrid>
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>

⌨️ 快捷键说明

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