dreamweaver留言板的代码?

如题所述

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ReleaseWord.aspx.cs" Inherits="Default2" Title="留言板" %><%@ Register TagPrefix="FTB" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"><script language="javascript" type="text/javascript"><!--function Reset2_onclick() {history.go(-1);} // --></script> <table width="100%" cellpadding="0" cellspacing="0" style="background-image: url(Images/SysSkin/leaveword.jpg)"><tr> <td rowspan="3" style="width: 50px; height: 370px;"> </td> <td rowspan="3" style="width: 356px; text-align: center; height: 370px;"> <table width="480" cellpadding="0" cellspacing="0"> <tr> <td colspan="2" style="height: 61px">
<span style="font-size: 16pt"></span></td> </tr> <tr>
<td style="width: 80px"> 留言主题</td> <td style="width: 403px; text-align: left"> <asp:TextBox ID="TextBox1" runat="server" Width="360px"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1" ErrorMessage="主题不能为空">*</asp:RequiredFieldValidator></td> </tr><tr> <td style="width: 80px; height: 2px"> 留言内容</td> <td rowspan="2" style="width: 403px; text-align: left"> <FTB:FreeTextBox id="FreeTextBox1" runat="Server" SupportFolder="aspnet_client/FreeTextBox/" ButtonSet="Office2003" Height="200px" Width="365px" ImageGalleryPath="../../images/" Language="zh-cn" /> </td></tr> <tr> <td style="width: 80px; height: 153px"> </td> </tr> <tr><td colspan="2" style="height: 9px; text-align: center"> <asp:Button ID="btnOK" runat="server" OnClick="btnOK_Click" Text="提交" /> <input id="Reset1" type="reset" value="重置" /> <input id="Reset2" type="reset" value="返回" language="javascript" onclick="return Reset2_onclick()" /></td> </tr> </table> <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True" ShowSummary="False" /> </td> <td rowspan="3" style="width: 50px; height: 370px;"> </td> </tr> <tr> </tr> <tr> </tr> </table></asp:Content>
温馨提示:答案为网友推荐,仅供参考
第1个回答  2013-07-06
推荐个思路吧,因为不知道楼主用的什么语言,asp简单些。首先做个表单,然后连接数据库,对应提交就可以了。