温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:Asp.net投票系统[单/复选,投票数量/项随意]源码
当前文件路径:ComplexVote/vote.aspx

1<%@ Page language="c#" Inherits="vote.vote" CodeFile="vote.aspx.cs" %> 2
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > 3
<HTML> 4
<HEAD> 5
<title>vote</title> 6
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"> 7
<meta content="C#" name="CODE_LANGUAGE"> 8
<meta content="JavaScript" name="vs_defaultClientScript"> 9
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema"> 10
</HEAD> 11
<body> 12
<form id="Form1" method="post" runat="server"> 13
<FONT face="宋体"> 14
<asp:panel id="Panel1" runat="server"> 15
<TABLE id="Table1" style="WIDTH: 240px; HEIGHT: 116px" borderColor="#0099ff" cellSpacing="0" 16
cellPadding="0" width="240" align="center" border="1"> 17
<TR> 18
<TD align="center" bgColor="#bef8f7"> 19
<asp:Label id="title" runat="server"></asp:Label></TD> 20
</TR> 21
<TR> 22
<TD align="center"> 23
<asp:RadioButtonList id="radl" runat="server"></asp:RadioButtonList> 24
<asp:CheckBoxList id="chkl" runat="server"></asp:CheckBoxList></TD> 25
</TR> 26
<TR> 27
<TD align="center" bgColor="#bef8f7"> 28
<asp:Button id="updata" runat="server" Text="提交" onclick="updata_Click"></asp:Button> 29
<asp:Button id="sohw" runat="server" Text="查看投票" onclick="sohw_Click"></asp:Button></TD> 30
</TR> 31
</TABLE> 32
</asp:panel></FONT><asp:panel id="Panel2" runat="server" Visible="False" Height="144px"><FONT face="宋体"> 33
<TABLE id="Table2" style="WIDTH: 219px; HEIGHT: 147px" borderColor="#00ccff" cellSpacing="0" 34
cellPadding="0" width="219" align="center" border="1" runat="server"> 35
<TR> 36
<TD> 37
<asp:DataGrid id="DataGrid1" runat="server" AutoGenerateColumns="False" AllowSorting="True" Width="236px"> 38
<HeaderStyle Font-Bold="True" BackColor="#00CCFF"></HeaderStyle> 39
<Columns> 40
<asp:BoundColumn DataField="votexiang" HeaderText="投票项"></asp:BoundColumn> 41
<asp:BoundColumn DataField="votenum" SortExpression="votenum" HeaderText="票数(点击排序)"></asp:BoundColumn> 42
</Columns> 43
</asp:DataGrid></TD> 44
</TR> 45
</TABLE> 46
</FONT> 47
</asp:panel> 48
<asp:Panel id="Panel4" runat="server"> 49
<TABLE id="Table3" style="WIDTH: 241px; HEIGHT: 20px" borderColor="#3399ff" cellSpacing="0" 50
cellPadding="0" width="241" align="center" border="1"> 51
<TR> 52
<TD> 53
<asp:DataGrid id="DataGrid2" runat="server" AutoGenerateColumns="False" Width="238px" AllowPaging="True"> 54
<HeaderStyle Font-Size="Larger" Font-Bold="True" HorizontalAlign="Center" ForeColor="#FFFFFF" 55
BackColor="#0066FF"></HeaderStyle> 56
<Columns> 57
<asp:BoundColumn DataField="id" SortExpression="id" ReadOnly="True" HeaderText="编号"></asp:BoundColumn> 58
<asp:HyperLinkColumn DataNavigateUrlField="id" DataNavigateUrlFormatString="vote.aspx?id={0}" DataTextField="xiang" 59
HeaderText="投票标题"></asp:HyperLinkColumn> 60
</Columns> 61
<PagerStyle NextPageText="下一页" PrevPageText="上一页"></PagerStyle> 62
</asp:DataGrid><FONT face="宋体"></FONT></TD> 63
</TR> 64
</TABLE> 65
</asp:Panel><FONT face="宋体">您的IP是:</FONT> 66
<asp:Label id="Label1" runat="server">Label</asp:Label><FONT face="宋体"> 投票时间是 67
: 68
<asp:Label id="Label2" runat="server"></asp:Label></FONT></form> 69
</body> 70
</HTML> 71




