温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:大学生调查投票系统源码
当前文件:
StudentVote/Add.aspx,打开代码结构图
StudentVote/Add.aspx,打开代码结构图1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Add.aspx.cs" Inherits="Vote" %> 2
3
<%@ Register Src="Header2.ascx" TagName="Header2" TagPrefix="uc3" %> 4
5
<%@ Register Src="Footer.ascx" TagName="Footer" TagPrefix="uc1" %> 6
<%@ Register Src="Header.ascx" TagName="Header" 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 style="width: 755px" cellpadding="0" cellspacing="0"> 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: 381px; background-image: url(Images/bdg.jpg); background-repeat: no-repeat;"> 27
<table style="width: 463px" cellpadding="0" cellspacing="0"> 28
<tr> 29
<td style="width: 69px; text-align: right"> 30
<span style="font-size: 9pt">标题:</span></td> 31
<td colspan="2" style="text-align: left"> 32
<asp:TextBox ID="TextBox1" runat="server" Font-Size="9pt" Width="385px"></asp:TextBox></td> 33
</tr> 34
<tr> 35
<td style="width: 69px; height: 2px; text-align: right"> 36
<span style="font-size: 9pt">内容:</span></td> 37
<td colspan="2" rowspan="2" style="text-align: left"> 38
<asp:TextBox ID="TextBox2" runat="server" Font-Size="9pt" Height="148px" Width="387px" TextMode="MultiLine"></asp:TextBox></td> 39
</tr> 40
<tr> 41
<td style="width: 69px; height: 106px"> 42
</td> 43
</tr> 44
<tr> 45
<td style="width: 69px"> 46
</td> 47
<td colspan="2"> 48
<asp:Button ID="btnAdd" runat="server" Font-Size="9pt" Text="添加" OnClick="btnAdd_Click" /> 49
<asp:Button ID="btnCancle" runat="server" Font-Size="9pt" Text="取消" OnClick="btnCancle_Click" CausesValidation="False" /></td> 50
</tr> 51
<tr> 52
<td colspan="3" style="height: 62px"> 53
<div style="width: 452px; height: 30px"> 54
<div style="width: 320px; height: 11px"> 55
<span style="font-size: 9pt; color: #ff0033;"><strong>“添加投票选项”说明</strong></span></div> 56
<span style="font-size: 9pt; color: #ff0033;">添加投票内容时,格式为"“票数,投票选项”<br /> 57
初始时,在“,”前指定为0.“,”为英文状态下输入的。</span></div> 58
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1" 59
ErrorMessage="标题不能为空" ForeColor="Blue"></asp:RequiredFieldValidator> 60
<asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True" 61
ShowSummary="False" /> 62
</td> 63
</tr> 64
</table> 65
</td> 66
</tr> 67
<tr> 68
</tr> 69
<tr> 70
</tr> 71
<tr> 72
<td colspan="3" rowspan="1" style="width: 758px; height: 5px"> 73
</td> 74
</tr> 75
<tr> 76
<td colspan="3" rowspan="1" style="width: 758px; height: 85px"> 77
<uc1:Footer ID="Footer1" runat="server" /> 78
</td> 79
</tr> 80
</table> 81
82
</div> 83
</form> 84
</body> 85
</html> 86



