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

1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SubjectManage.aspx.cs" Inherits="SubjectManage" %> 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 id="Head1" runat="server"> 7
<title>无标题页</title> 8
</head> 9
<body> 10
<form id="form1" runat="server"> 11
<div> 12
<table style="width: 617px; height: 48px"> 13
<tr> 14
<td style="width: 70px; height: 29px"> 15
</td> 16
<td style="width: 147px; height: 29px"> 17
<a href="Votes.aspx" style="background-color:Gray">投票</a></td> 18
<td style="width: 153px; height: 29px"> 19
<a href="ShowVotes.aspx">查看投票</a></td> 20
<td style="width: 170px; height: 29px"> 21
<a href="ShowVotesByPictures.aspx">以图片形式察看</a></td> 22
</tr> 23
<tr> 24
<td style="width: 70px; height: 29px"> 25
</td> 26
<td style="width: 147px; height: 29px"> 27
<a href="TopicManage.aspx">投票主题管理(Topic)</a></td> 28
<td style="width: 153px; height: 29px"> 29
<a href="SubjectManage.aspx">投票项管理(Subject)</a></td> 30
<td style="width: 170px; height: 29px"> 31
<a href="ItemManage.aspx">投票内容管理(Item)</a></td> 32
<td style="height: 29px"> 33
</td> 34
</tr> 35
</table><br /> 36
<asp:DropDownList ID="TopicList" runat="server" OnSelectedIndexChanged="TopicList_SelectedIndexChanged" AutoPostBack="true"> 37
</asp:DropDownList> 38
<table style="width: 735px; height: 113px"> 39
<tr> 40
<td style="width: 10px; height: 5px"> 41
</td> 42
<td style="width: 594px; height: 5px"> 43
</td> 44
<td style="height: 5px"> 45
</td> 46
</tr> 47
<tr> 48
<td style="width: 10px; height: 73px"> 49
</td> 50
<td style="width: 594px; height: 73px"> 51
<asp:GridView ID="SubjectView" runat="server" Height="47px" Width="704px" CellPadding="4" ForeColor="#333333" GridLines="None" AutoGenerateColumns="false" 52
OnRowDataBound="SubjectView_RowDataBound" OnRowCommand="SubjectView_RowCommand" OnRowDeleting="SubjectView_RowDeleting" OnRowUpdating="SubjectView_RowUpdating" DataKeyNames="s_id"> 53
<Columns> 54
<asp:TemplateField HeaderText="投票项目(s_id)"> 55
<ItemTemplate> 56
<%#DataBinder.Eval(Container.DataItem,"s_id") %> 57
</ItemTemplate> 58
</asp:TemplateField> 59
<asp:TemplateField HeaderText="投票项目名称(s_name)"> 60
<ItemTemplate> 61
<%#DataBinder.Eval(Container.DataItem,"s_name") %> 62
</ItemTemplate> 63
</asp:TemplateField> 64
<asp:TemplateField HeaderText="投票项目模式(s_mode)"> 65
<ItemTemplate> 66
<asp:RadioButton runat="server" ID="radiobutton" Checked='<%#DataBinder.Eval(Container.DataItem,"s_mode") %>' Text='<%#(bool)DataBinder.Eval(Container.DataItem,"s_mode")==true?"多选":"单选" %>' Enabled="false"/> 67
</ItemTemplate> 68
</asp:TemplateField> 69
70
<asp:CommandField HeaderText="选择当前行" ShowSelectButton="True" SelectText="选择该行"/> 71
<asp:TemplateField HeaderText="用户操作"> 72
<ItemTemplate> 73
<asp:ImageButton runat="server" ID="imagebtn" CommandName="delete" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"s_id") %>' ImageUrl="~/delete.gif" AlternateText="删除该用户"/> 74
<asp:Button runat="server" ID="btn" CommandName="update" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"s_id") %>' Text="更新"/> 75
</ItemTemplate> 76
</asp:TemplateField> 77
</Columns> 78
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> 79
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" /> 80
<EditRowStyle BackColor="#999999" /> 81
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" /> 82
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" /> 83
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> 84
<AlternatingRowStyle BackColor="White" ForeColor="#284775" /> 85
</asp:GridView> 86
</td> 87
<td style="height: 73px"> 88
</td> 89
</tr> 90
<tr> 91
<td style="width: 10px"> 92
</td> 93
<td style="width: 594px" align="right"> 94
<asp:Button ID="ChangeMode" runat="server" Text="更新模式(单、双)" OnClick="ChangeMode_Click" /></td> 95
<td> 96
</td> 97
</tr> 98
</table> 99
<asp:Label ID="lbl" runat="server" Height="22px" Text="新增投票项目" Width="154px"></asp:Label> 100
<br /> 101
<asp:TextBox ID="name" runat="server" Width="382px" Height="26px"></asp:TextBox><br /> 102
<br /> 103
<asp:Button ID="AddUpdateBtn" runat="server" Text="新增投票" CommandName="add" OnClick="AddUpdateBtn_Click"/> 104
</div> 105
</form> 106
</body> 107
</html> 108



