📄 voteitems.aspx
字号:
<%@ Page language="c#" Codebehind="VoteItems.aspx.cs" AutoEventWireup="false" Inherits="Web.Manage.Vote.VoteItems" %>
<!doctype html public "-//w3c//dtd html 4.0 transitional//en" >
<html>
<head>
<title>UserList</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">
<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%" border="0" cellpadding="1" class="Table_03" cellspacing="5">
<tr>
<td align="left" height="15" width="15%">投票ID:<asp:label id="VoteIDLabel" runat="server">Label</asp:label></td>
<td align="left" height="15" width="65%">主题:<asp:label id="TitleLabel" runat="server">Label</asp:label></td>
<td align="left" height="15" width="20%">总投票数:<asp:label id="TotalCountLabel" runat="server">Label</asp:label></td>
</tr>
</table>
<br>
<%--中间分隔符--%>
<table width="100%">
<tr>
<td align="center"><font color="red">-------------------------新增当前项目的投票项-------------------------------</font>
</td>
</tr>
</table>
<br>
<%--新增项--%>
<table class="Table_03" width="100%" align="center">
<tr>
<td align="center">
</td>
</tr>
<tr>
<td>
项内容:<asp:textbox id="ItemTextBox" runat="server" cssclass="formStyle11" width="80%" style="CURSOR:hand"></asp:textbox>
</td>
</tr>
<tr>
<td height="25" align="center">
<asp:button id="btnSave" runat="server" text="新 增" cssclass="formstyleall"></asp:button>
<input type="reset" value="重 置" class="formstyleall">
</td>
</tr>
</table>
<br>
<%--中间分隔符--%>
<table width="100%">
<tr>
<td align="center">
<font color="red">-------------------------------选项列表--------------------------------------</font>
</td>
</tr>
</table>
<br>
<%--绑定项--%>
<asp:panel id="BodyPanel" runat="server" width="100%" horizontalalign="Center"><asp:datalist id="VoteItemsDataList" runat="server" width="100%" cssclass="Table_03" borderwidth="1">
<headertemplate>
<tr>
<td valign="top" class="Td_04" width="50px" align="center">排序号</td>
<td valign="top" class="Td_04" align="center">选项内容</td>
<td valign="top" class="Td_04" align="center">投票数</td>
<td valign="top" class="Td_04" align="center">删除项</td>
</tr>
</headertemplate>
<itemtemplate>
<tr height="18">
<td class="Td_15" align="center" width="50px" nowrap><%# DataBinder.Eval(Container.DataItem, "SortIndex") %></td>
<td class="Td_15" align="left" width="100%" nowrap> <%# DataBinder.Eval(Container.DataItem, "VoteItemContent") %></td>
<td class="Td_15" align="center" width="50px" nowrap><%# DataBinder.Eval(Container.DataItem, "Count") %></td>
<td class="Td_15" align="center" width="50px" nowrap><asp:Linkbutton id="btnAction" commandname="DelItem" cssclass="formstyleall?" text="删除" visible="True" runat="server" enabled="true" causesvalidation="False"></asp:Linkbutton></td>
</tr>
</itemtemplate>
</asp:datalist>
</asp:panel><br>
<table width="100%" border="0" cellpadding="1" class="Table_03" cellspacing="5">
<tr>
<td align="left" height="10" width="20%">投票调用地址:<font color=red>http://localhost/Web/VoteSample.aspx?VoteID=</font> 你的投票VoteID</td>
</tr>
<tr>
<td align="left" height="10" width="20%">饼图调用地址:<font color=red>http://localhost/Web/ChartSample.aspx?VoteID=</font> 你的投票VoteID</td>
</tr>
<tr>
<td align="left" height="10" width="20%">注意:<font color=red>http://localhost/Web/ </font>替换为你的程序的虚拟目录</td>
</tr>
</table>
<asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ErrorMessage="项内容不能为空!" ControlToValidate="ItemTextBox" Display="None"></asp:RequiredFieldValidator><asp:ValidationSummary id="ValidationSummary1" runat="server" showmessagebox="True" showsummary="False"></asp:ValidationSummary>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -