温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:太糊留言板(VS2008+SQL2005)
当前文件:
TaiHuMessage/Default.aspx,打开代码结构图
TaiHuMessage/Default.aspx,打开代码结构图1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> 2
3
<%@ Register src="ShowMes.ascx" tagname="ShowMes" tagprefix="uc1" %> 4
5
<%@ Register src="foot.ascx" tagname="foot" tagprefix="uc2" %> 6
7
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 8
9
<html xmlns="http://www.w3.org/1999/xhtml"> 10
<head runat="server"> 11
<title>太糊留言板</title> 12
<style type="text/css"> 13
.style1 14
{ 15
width: 700px; 16
height: 396px; 17
} 18
.style2 19
{ 20
height: 146px; 21
} 22
.style3 23
{ 24
width: 100%; 25
height: 366px; 26
} 27
.style4 28
{ 29
} 30
.style6 31
{ 32
} 33
.style8 34
{ 35
width: 120px; 36
} 37
.style9 38
{ 39
width: 67px; 40
} 41
.style10 42
{ 43
height: 146px; 44
width: 100%; 45
font-weight: bold; 46
font-family: 华文新魏; 47
font-size: xx-large; 48
color: #0066FF; 49
} 50
.style14 51
{ 52
width: 100%; 53
height: 32px; 54
} 55
.style15 56
{ 57
font-family: 宋体, Arial, Helvetica, sans-serif; 58
font-weight: normal; 59
color: #99CCFF; 60
} 61
.style11 62
{ 63
font-size: xx-large; 64
} 65
</style> 66
</head> 67
<body bgcolor="#99ccff"> 68
<form id="form1" runat="server"> 69
<div align="center" 70
71
style="height: 879px; margin-bottom: 143px; font-family: 宋体, Arial, Helvetica, sans-serif; font-size: small; color: #008080; text-decoration: none;"> 72
<table cellpadding="0" cellspacing="0" class="style1" 73
style="background-image: url('image/bj.jpg'); font-family: 宋体, Arial, Helvetica, sans-serif; color: #99CCFF; font-size: small;"> 74
<tr> 75
<td class="style10" valign="top" 76
style="font-size: small; " align="center"> 77
78
<br /> 79
<br /> 80
<span class="style11">太糊留言板</span><br /> 81
<br /> 82
<br /> 83
84
<table cellpadding="0" cellspacing="0" class="style14"> 85
<tr> 86
<td align="left" class="style15" height="10px" valign="bottom"> 87
88
总访问量:<asp:Label ID="Label2" runat="server" Text="Label"></asp:Label> 89
当前在线:<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> 90
</td> 91
</tr> 92
</table> 93
94
95
</td> 96
</tr> 97
<tr> 98
<td align="left" valign="top"> 99
<table class="style3"> 100
<tr> 101
<td align="right" class="style8"> 102
姓名:</td> 103
<td> 104
<asp:TextBox ID="NameTextBox" runat="server"></asp:TextBox> 105
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 106
ControlToValidate="NameTextBox" Display="Dynamic" ErrorMessage="请输入大名!"></asp:RequiredFieldValidator> 107
</td> 108
<td align="right"> 109
当前时间:</td> 110
<td colspan="2" align="left"> 111
<asp:Label ID="time" runat="server" Text="Label"></asp:Label> 112
</td> 113
</tr> 114
<tr> 115
<td align="right" class="style8"> 116
验证:</td> 117
<td colspan="4"> 118
<asp:TextBox ID="ValidatorTextBox" runat="server"></asp:TextBox> 119
<asp:Label ID="Validator" runat="server" Text="Label"></asp:Label> 120
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 121
ControlToValidate="ValidatorTextBox" Display="Dynamic" ErrorMessage="验证码不正确"></asp:RequiredFieldValidator> 122
</td> 123
</tr> 124
<tr> 125
<td align="right" class="style8"> 126
留言内容:</td> 127
<td colspan="4"> 128
<asp:TextBox ID="MessageTextBox" runat="server" Height="181px" 129
TextMode="MultiLine" Width="424px" style="margin-left: 2px"></asp:TextBox> 130
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 131
ControlToValidate="MessageTextBox" ErrorMessage="留言不能为空" Display="Dynamic"></asp:RequiredFieldValidator> 132
</td> 133
</tr> 134
<tr> 135
<td class="style8"> 136
</td> 137
<td align="right" class="style9"> 138
<asp:LinkButton ID="SubmitLinkButton" runat="server" 139
onclick="SubmitLinkButton_Click">提交</asp:LinkButton> 140
</td> 141
<td align="right" class="style9"> 142
<asp:LinkButton ID="ClearLinkButton" runat="server" CausesValidation="False" 143
onclick="ClearLinkButton_Click">清空</asp:LinkButton> 144
</td> 145
<td class="style6" align="center"> 146
</td> 147
<td class="style6" align="center"> 148
</td> 149
</tr> 150
<tr> 151
<td class="style4" colspan="5"> 152
<uc1:ShowMes ID="ShowMes1" runat="server" /> 153
</td> 154
</tr> 155
<tr> 156
<td class="style4" colspan="5" align="left" valign="top"> 157
<uc2:foot ID="foot1" runat="server" /> 158
<br /> 159
</td> 160
</tr> 161
</table> 162
</td> 163
</tr> 164
</table> 165
</div> 166
</form> 167
168
169
</body> 170
</html> 171



.style1

