?? guestbook.aspx
字號:
?<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Guestbook.aspx.cs" Inherits="Guestbook" %>
<%@ Register Src="Controllers/Bottom.ascx" TagName="Bottom" TagPrefix="uc4" %>
<%@ Register Src="Controllers/Top.ascx" TagName="Top" TagPrefix="uc1" %>
<%@ Register Src="Controllers/Left.ascx" TagName="Left" TagPrefix="uc2" %>
<html>
<head runat="server">
<title><%=Titlep %></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta content="<%= Descriptionp%>" name="description"/>
<meta content="<%=Keywordsp %>" name="keywords" />
<link href="Images/css.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css">
<!--
body,td,th {
font-size: 12px;
color: #000000;
}
a:link {
color: #000000;
text-decoration: underline;
}
a:visited {
text-decoration: underline;
color: #000000;
}
a:hover {
text-decoration: underline;
}
a:active {
text-decoration: underline;
}
-->
</style>
<script language="JavaScript">
function go(obj){
if(obj.txtname.value.length<=0){
window.alert("!");
return false;
}
if(obj.txtpass.value.length<=0){
window.alert("!");
return false;
}
return true;
}
</script>
</head>
<body style="text-align: center">
<form id="form1" runat="server" onSubmit="return go(this)" >
<div>
<table border="0" align="center" cellpadding="0" cellspacing="0" style="width: 778px">
<tr>
<td style="width: 100px">
<uc1:Top ID="Top1" runat="server" />
</td>
</tr>
</table>
<table border="0" align="center" cellpadding="0" cellspacing="0" style="width: 778px; background-color: #ffffff;">
<tr>
<td style="height: 395px">
<table border="0" cellpadding="0" cellspacing="0" style="width: 778px">
<tr>
<td width="183" align="left" valign="top"><table width="183" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="left">
<uc2:Left ID="Left1" runat="server" />
</div></td>
</tr>
</table></td>
<td width="595" valign="top"><div align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="Images/guestbook.jpg"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="542" height="308" border="0" align="center" cellpadding="0" cellspacing="8">
<tr>
<td align="right">您的姓名:</td>
<td align="left"><asp:TextBox ID="UserName" runat="server" Width="199px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="請輸入您的名字!" ControlToValidate="UserName"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td align="right" style="height: 24px">您的郵箱:</td>
<td align="left" style="height: 24px"><asp:TextBox ID="email" runat="server" Width="199px"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="email"
ErrorMessage="請您正確填寫郵件地址!" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
</tr>
<tr>
<td align="right" style="height: 24px">聯系電話:</td>
<td style="height: 24px"><asp:TextBox ID="tel" runat="server" Width="199px"></asp:TextBox></td>
</tr>
<tr>
<td align="right">您的地址:</td>
<td><asp:TextBox ID="addr" runat="server" Width="199px"></asp:TextBox></td>
</tr>
<tr>
<td align="right">留言標題:</td>
<td><asp:TextBox ID="title" runat="server" Width="199px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="title"
ErrorMessage="請填寫標題"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td align="right">留言內容:</td>
<td><asp:TextBox ID="content" runat="server" Height="148px" TextMode="MultiLine"
Width="312px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="content"
ErrorMessage="請填寫內容!"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="8" cellpadding="0">
<tr>
<td align="center"><asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="提交" />
<input type="reset" name="Submit" value="重置"></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</div></td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="width: 100px">
<uc4:Bottom ID="Bottom1" runat="server" />
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -