温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:简单多功能投票/调查系统源码
当前文件路径:Votes/ItemManage.aspx

1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ItemManage.aspx.cs" Inherits="ItemManage" %> 2
3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 4
5
<html xmlns="http://www.w3.org/1999/xhtml" > 6
<head runat="server"> 7
<title>无标题页</title> 8
</head> 9
<body style="font-size:12px;"> 10
<form id="form1" runat="server"> 11
<!--download from 51aspx.com(51aspx.com)--> 12
13
<table style="width: 617px; height: 48px"> 14
<tr> 15
<td style="width: 70px; height: 29px"> 16
</td> 17
<td style="width: 147px; height: 29px"> 18
<a href="Votes.aspx" style="background-color: gray">投票</a></td> 19
<td style="width: 153px; height: 29px"> 20
<a href="ShowVotes.aspx">查看投票</a></td> 21
<td style="width: 170px; height: 29px"> 22
<a href="ShowVotesByPictures.aspx">以图片形式察看</a></td> 23
</tr> 24
<tr> 25
<td style="width: 70px; height: 29px"> 26
</td> 27
<td style="width: 147px; height: 29px"> 28
<a href="TopicManage.aspx">投票主题管理(Topic)</a></td> 29
<td style="width: 153px; height: 29px"> 30
<a href="SubjectManage.aspx">投票项管理(Subject)</a></td> 31
<td style="width: 170px; height: 29px"> 32
<a href="ItemManage.aspx">投票内容管理(Item)</a></td> 33
<td style="height: 29px"> 34
</td> 35
</tr> 36
</table> 37
<asp:DropDownList ID="TopicList" runat="server" OnSelectedIndexChanged="TopicList_SelectedIndexChanged" AutoPostBack="true"> 38
</asp:DropDownList><br /> 39
<br /> 40
<asp:DropDownList ID="SubjectList" runat="server" OnSelectedIndexChanged="SubjectList_SelectedIndexChanged" AutoPostBack="true"> 41
</asp:DropDownList><br /> 42
<table style="width: 609px; height: 78px"> 43
<tr> 44
<td style="width: 8px; height: 3px"> 45
</td> 46
<td style="width: 582px; height: 3px"> 47
</td> 48
<td style="height: 3px"> 49
</td> 50
</tr> 51
<tr> 52
<td style="width: 8px; height: 35px"> 53
</td> 54
<td style="width: 582px; height: 35px"> 55
<asp:GridView ID="ItemView" runat="server" Height="116px" Width="622px" AutoGenerateColumns="False" OnRowDataBound="ItemView_RowDataBound" OnRowCommand="ItemView_RowCommand" OnRowDeleting="ItemView_RowDeleting" OnRowUpdating="ItemView_RowUpdating" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Vertical"> 56
<Columns> 57
<asp:TemplateField HeaderText="投票内容名称"> 58
<ItemTemplate> 59
<%#DataBinder.Eval(Container.DataItem,"i_name") %> 60
</ItemTemplate> 61
</asp:TemplateField> 62
<asp:TemplateField HeaderText="投票票数"> 63
<ItemTemplate> 64
<%#DataBinder.Eval(Container.DataItem,"i_count") %> 65
</ItemTemplate> 66
</asp:TemplateField> 67
<asp:TemplateField HeaderText="用户操作"> 68
<ItemTemplate> 69
<asp:ImageButton runat="server" ID="imageButton" CommandName="delete" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"i_id") %>' ImageUrl="~/delete.gif" AlternateText="删除"/> 70
<asp:Button runat="server" ID="button" CommandName="update" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"i_id") %>' Text="更新"/> 71
</ItemTemplate> 72
</asp:TemplateField> 73
</Columns> 74
75
76
<FooterStyle BackColor="#CCCC99" /> 77
<RowStyle BackColor="#F7F7DE" /> 78
<SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" /> 79
<PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" /> 80
<HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" /> 81
<AlternatingRowStyle BackColor="White" /> 82
</asp:GridView> 83
</td> 84
<td style="height: 35px"> 85
</td> 86
</tr> 87
<tr> 88
<td style="width: 8px"> 89
</td> 90
<td style="width: 582px"> 91
</td> 92
<td> 93
</td> 94
</tr> 95
</table> 96
<asp:Label ID="title" runat="server" Height="25px" Text="增加投票内容" Width="280px"></asp:Label><br /> 97
<asp:TextBox ID="name" runat="server" Height="31px" Width="272px"></asp:TextBox><br /> 98
<asp:Button ID="AddUpdatebtn" runat="server" Text="增加投票" CommandName="add" OnClick="AddUpdatebtn_Click" /> 99
</form> 100
</body> 101
</html> 102



