温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:大学生调查投票系统源码
当前文件:
StudentVote/Edit.aspx,打开代码结构图
StudentVote/Edit.aspx,打开代码结构图1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Edit.aspx.cs" Inherits="Edit" %> 2
3
<%@ Register Src="Header2.ascx" TagName="Header2" TagPrefix="uc3" %> 4
5
<%@ Register Src="Header.ascx" TagName="Header" TagPrefix="uc1" %> 6
<%@ Register Src="Footer.ascx" TagName="Footer" TagPrefix="uc2" %> 7
8
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 9
10
<html xmlns="http://www.w3.org/1999/xhtml" > 11
<head runat="server"> 12
<title>编辑</title> 13
<link href="CSS/StyleSheet.css" rel="stylesheet" type="text/css" /> 14
15
</head> 16
<body style="margin-top: 0px; padding-top: 0px"> 17
<form id="form1" runat="server"> 18
<div style="text-align: center"> 19
<table cellpadding="0" cellspacing="0" style="width: 755px"> 20
<tr> 21
<td colspan="3" rowspan="1" style="width: 758px; height: 5px"> 22
<uc3:Header2 ID="Header2_1" runat="server" /> 23
</td> 24
</tr> 25
<tr> 26
<td colspan="3" rowspan="3" style="width: 758px; height: 380px; background-image: url(Images/bdg.jpg);"> 27
<table style="width: 462px" cellpadding="0" cellspacing="0"> 28
<tr> 29
<td style="width: 201px; text-align: right"> 30
<span style="font-size: 9pt">标题:</span></td> 31
<td colspan="2" style="width: 474px; text-align: left"> 32
<asp:TextBox ID="txtSubject" runat="server" Width="395px"></asp:TextBox></td> 33
</tr> 34
<tr> 35
<td style="width: 201px; text-align: right; height: 12px;"> 36
<span style="font-size: 9pt">内容:</span></td> 37
<td colspan="2" rowspan="3" style="width: 474px; text-align: left"> 38
<asp:TextBox ID="txtContent" runat="server" Height="167px" TextMode="MultiLine" Width="393px"></asp:TextBox></td> 39
</tr> 40
<tr> 41
<td rowspan="2" style="width: 201px; height: 111px"> 42
</td> 43
</tr> 44
<tr> 45
</tr> 46
<tr> 47
<td style="width: 201px"> 48
</td> 49
<td colspan="2" rowspan="1" style="width: 474px"> 50
<asp:Button ID="btnUpdate" runat="server" Font-Size="9pt" OnClick="btnUpdate_Click" 51
Text="更改" /> 52
<asp:Button ID="btnDelete" runat="server" Font-Size="9pt" OnClick="btnDelete_Click" 53
Text="删除投票" CausesValidation="False" /></td> 54
</tr> 55
<tr> 56
<td style="width: 201px; height: 12px;"> 57
</td> 58
<td colspan="2" rowspan="1" style="width: 474px; height: 12px;"> 59
<asp:Label ID="labState" runat="server" Font-Size="9pt" Height="10px" Width="206px"></asp:Label></td> 60
</tr> 61
<tr> 62
<td colspan="3"> 63
<div style="width: 452px; height: 30px"> 64
<div style="width: 320px; height: 11px"> 65
<span style="font-size: 9pt; color: #ff0033;"><strong>“编辑投票选项”说明</strong></span></div> 66
<span style="font-size: 9pt; color: #ff0000;">编辑投票内容时,格式为"“票数,投票选项”<br /> 67
初始时,在“,”前指定为0.“,”为英文状态下输入的。</span></div> 68
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtSubject" 69
ErrorMessage="标题不能为空" ForeColor="Blue"></asp:RequiredFieldValidator> 70
<asp:ValidationSummary ID="ValidationSummary1" runat="server" /> 71
</td> 72
</tr> 73
</table> 74
</td> 75
</tr> 76
<tr> 77
</tr> 78
<tr> 79
</tr> 80
<tr> 81
<td colspan="3" rowspan="1" style="width: 758px; height: 5px"> 82
</td> 83
</tr> 84
<tr> 85
<td colspan="3" rowspan="1" style="width: 758px; height: 50px"> 86
<uc2:Footer ID="Footer1" runat="server" /> 87
</td> 88
</tr> 89
</table> 90
91
</div> 92
</form> 93
</body> 94
</html> 95



