From 013f5d6e133ea994ccced2876f378b4712f25aed Mon Sep 17 00:00:00 2001 From: editor <@51Aspx.com> Date: Fri, 31 May 2024 18:19:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 51Aspx源码必读.txt | 40 +++++++++++++++++++++++++++++++++++++ ASPNET2.0BaseCss.css | 15 ++++++++++++++ AddMutilReply.aspx | 15 ++++++++++++++ AddMutilReply.aspx.cs | 15 ++++++++++++++ AddReply.aspx | 15 ++++++++++++++ AddReply.aspx.cs | 15 ++++++++++++++ App_Code/ILeaveword.cs | 15 ++++++++++++++ App_Code/IReply.cs | 15 ++++++++++++++ App_Code/IReplyLeaveword.cs | 15 ++++++++++++++ App_Code/Leaveword.cs | 15 ++++++++++++++ App_Code/Reply.cs | 15 ++++++++++++++ App_Code/ReplyLeaveword.cs | 15 ++++++++++++++ App_Code/SystemTools.cs | 15 ++++++++++++++ App_Code/User.cs | 15 ++++++++++++++ Default.aspx | 15 ++++++++++++++ Default.aspx.cs | 15 ++++++++++++++ ErrorPage.aspx | 15 ++++++++++++++ ErrorPage.aspx.cs | 15 ++++++++++++++ Leaveword.aspx | 15 ++++++++++++++ Leaveword.aspx.cs | 15 ++++++++++++++ LeavewordManage.aspx | 15 ++++++++++++++ LeavewordManage.aspx.cs | 15 ++++++++++++++ ReplyManage.aspx | 15 ++++++++++++++ ReplyManage.aspx.cs | 15 ++++++++++++++ UserLogoff.aspx | 15 ++++++++++++++ UserLogoff.aspx.cs | 15 ++++++++++++++ ValidateImage.aspx | 13 ++++++++++++ ValidateImage.aspx.cs | 15 ++++++++++++++ ViewLeaveword.aspx | 15 ++++++++++++++ ViewLeaveword.aspx.cs | 15 ++++++++++++++ ViewReply.aspx | 15 ++++++++++++++ ViewReply.aspx.cs | 15 ++++++++++++++ web.config | 15 ++++++++++++++ 33 files changed, 518 insertions(+) create mode 100644 51Aspx源码必读.txt create mode 100644 ASPNET2.0BaseCss.css create mode 100644 AddMutilReply.aspx create mode 100644 AddMutilReply.aspx.cs create mode 100644 AddReply.aspx create mode 100644 AddReply.aspx.cs create mode 100644 App_Code/ILeaveword.cs create mode 100644 App_Code/IReply.cs create mode 100644 App_Code/IReplyLeaveword.cs create mode 100644 App_Code/Leaveword.cs create mode 100644 App_Code/Reply.cs create mode 100644 App_Code/ReplyLeaveword.cs create mode 100644 App_Code/SystemTools.cs create mode 100644 App_Code/User.cs create mode 100644 Default.aspx create mode 100644 Default.aspx.cs create mode 100644 ErrorPage.aspx create mode 100644 ErrorPage.aspx.cs create mode 100644 Leaveword.aspx create mode 100644 Leaveword.aspx.cs create mode 100644 LeavewordManage.aspx create mode 100644 LeavewordManage.aspx.cs create mode 100644 ReplyManage.aspx create mode 100644 ReplyManage.aspx.cs create mode 100644 UserLogoff.aspx create mode 100644 UserLogoff.aspx.cs create mode 100644 ValidateImage.aspx create mode 100644 ValidateImage.aspx.cs create mode 100644 ViewLeaveword.aspx create mode 100644 ViewLeaveword.aspx.cs create mode 100644 ViewReply.aspx create mode 100644 ViewReply.aspx.cs create mode 100644 web.config diff --git a/51Aspx源码必读.txt b/51Aspx源码必读.txt new file mode 100644 index 0000000..3a3855a --- /dev/null +++ b/51Aspx源码必读.txt @@ -0,0 +1,40 @@ +ASP.NET简单留言板源码(面向对象) + +一、源码描述 +环境:VS2022 sql2019 + +二、功能介绍 +可以对留言进行回复 +游客也可以留言,用户登录采用随机验证码 +默认帐号密码:admin 51aspx +该示例采用面向对象方法开发 + +三、注意事项 +1、在项目web.config修改数据库连接字符串,附加数据库。 +2、管理员账号与密码:admin  51aspx 。 +3、ctrl+F5运行即可。 + + + + + +作者: zhangyd + +如需获得该源码的视频、更新等更多资料请访问: https://www.51aspx.com/Code/AspnetLiuyanban +------------------------------------------------------------------------------------------------ + + 源码服务专家 + 官网: https://www.51aspx.com + 讨论圈: https://club.51aspx.com/ + +平台声明: + +1.51Aspx平台上提供下载的资源为免费、共享、商业三类源码,其中免费和共享源码仅供个人学习和研究使用,商业源码请在相应的授权许可条件下使用; +2.51Aspx平台对提供下载的软件及其它资源不拥有任何权利,其版权归属源码合法拥有者所有; +3.著作权人发现本网站载有侵害其合法权益的内容或作品,请与我们联系( 登录官网与客服反馈或发送邮件到support@51Aspx.com ); +4.51Aspx平台不保证提供的下载资源的准确性、安全性和完整性; + +友情提示: + 一般数据库文件默认在 DB_51Aspx 文件夹下 + 默认账号密码一般均为51Aspx + 关于源码使用常见问题及解决方案,请参阅: https://www.51aspx.com/Help diff --git a/ASPNET2.0BaseCss.css b/ASPNET2.0BaseCss.css new file mode 100644 index 0000000..dcb4818 --- /dev/null +++ b/ASPNET2.0BaseCss.css @@ -0,0 +1,15 @@ +.HeaderText +{ + font-size: 25pt; + font-weight: bolder; + font-family: ����, @����_GB2312; + font-style: normal; +} + +.Text { font-size: 9pt} +.Newbutton +{ + font-size: 9pt; color: White; + font-family: "Tahoma","����"; +} +.InputCss { diff --git a/AddMutilReply.aspx b/AddMutilReply.aspx new file mode 100644 index 0000000..b31e27c --- /dev/null +++ b/AddMutilReply.aspx @@ -0,0 +1,15 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddMutilReply.aspx.cs" Inherits="AddMutilReply" %> + + + + + + 第10章:留言板===回复留言 + + + +
+ + + diff --git a/AddMutilReply.aspx.cs b/AddMutilReply.aspx.cs new file mode 100644 index 0000000..29c32e6 --- /dev/null +++ b/AddMutilReply.aspx.cs @@ -0,0 +1,15 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; + +public partial class AddMutilReply : System.Web.UI.Page +{ + //该源码下载自www.51aspx.com(51aspx.com) + diff --git a/AddReply.aspx b/AddReply.aspx new file mode 100644 index 0000000..57f1761 --- /dev/null +++ b/AddReply.aspx @@ -0,0 +1,15 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddReply.aspx.cs" Inherits="AddReply" %> + + + + + + 第10章:留言板===回复留言 + + + + +
回复多条留言
+ + diff --git a/AddReply.aspx.cs b/AddReply.aspx.cs new file mode 100644 index 0000000..d64b301 --- /dev/null +++ b/AddReply.aspx.cs @@ -0,0 +1,15 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using System.Data.SqlClient; + +public partial class AddReply : System.Web.UI.Page +{ + private int nLeavewordID = -1; diff --git a/App_Code/ILeaveword.cs b/App_Code/ILeaveword.cs new file mode 100644 index 0000000..2526a34 --- /dev/null +++ b/App_Code/ILeaveword.cs @@ -0,0 +1,15 @@ +using System; +using System.Data; +using System.Configuration; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using System.Data.SqlClient; + +/// +/// 接口ILeaveword +/// +public interface ILeaveword diff --git a/App_Code/IReply.cs b/App_Code/IReply.cs new file mode 100644 index 0000000..68c82b8 --- /dev/null +++ b/App_Code/IReply.cs @@ -0,0 +1,15 @@ +using System; +using System.Data; +using System.Configuration; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using System.Data.SqlClient; + +/// +/// 接口IReply +/// +public interface IReply diff --git a/App_Code/IReplyLeaveword.cs b/App_Code/IReplyLeaveword.cs new file mode 100644 index 0000000..3c2d727 --- /dev/null +++ b/App_Code/IReplyLeaveword.cs @@ -0,0 +1,15 @@ +using System; +using System.Data; +using System.Configuration; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using System.Data.SqlClient; + + +/// //该源码下载自www.51aspx.com(51aspx.com) + +/// 接口IReplyLeaveword diff --git a/App_Code/Leaveword.cs b/App_Code/Leaveword.cs new file mode 100644 index 0000000..6d56e7f --- /dev/null +++ b/App_Code/Leaveword.cs @@ -0,0 +1,15 @@ +using System; +using System.Data; +using System.Configuration; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using System.Data.SqlClient; + +/// +/// Leaveword 的摘要说明 +/// +public class Leaveword : ILeaveword diff --git a/App_Code/Reply.cs b/App_Code/Reply.cs new file mode 100644 index 0000000..80a7e08 --- /dev/null +++ b/App_Code/Reply.cs @@ -0,0 +1,15 @@ +using System; +using System.Data; +using System.Configuration; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using System.Data.SqlClient; + +/// +/// Reply 的摘要说明 +/// +public class Reply : IReply diff --git a/App_Code/ReplyLeaveword.cs b/App_Code/ReplyLeaveword.cs new file mode 100644 index 0000000..5a85964 --- /dev/null +++ b/App_Code/ReplyLeaveword.cs @@ -0,0 +1,15 @@ +using System; +using System.Data; +using System.Configuration; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using System.Data.SqlClient; + +/// +/// ReplyLeaveword的说明信息 +/// +public class ReplyLeaveword : IReplyLeaveword diff --git a/App_Code/SystemTools.cs b/App_Code/SystemTools.cs new file mode 100644 index 0000000..3bb3cf6 --- /dev/null +++ b/App_Code/SystemTools.cs @@ -0,0 +1,15 @@ +using System; +using System.Data; +using System.Configuration; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using System.Data.SqlClient; + +/// +/// SystemTools 的摘要说明 +/// +public class SystemTools diff --git a/App_Code/User.cs b/App_Code/User.cs new file mode 100644 index 0000000..3e9926a --- /dev/null +++ b/App_Code/User.cs @@ -0,0 +1,15 @@ +using System; +using System.Data; +using System.Configuration; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using System.Data.SqlClient; + +public interface IUser +{ + //该源码下载自www.51aspx.com(51aspx.com) + diff --git a/Default.aspx b/Default.aspx new file mode 100644 index 0000000..5306823 --- /dev/null +++ b/Default.aspx @@ -0,0 +1,15 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> + + + + + + 留言板 |-51aspx.com + + + + +
回复留言
+ + + diff --git a/Default.aspx.cs b/Default.aspx.cs new file mode 100644 index 0000000..152292a --- /dev/null +++ b/Default.aspx.cs @@ -0,0 +1,15 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using System.Data.SqlClient; +using System.Text; + +public partial class _Default : System.Web.UI.Page +{ diff --git a/ErrorPage.aspx b/ErrorPage.aspx new file mode 100644 index 0000000..dc5952a --- /dev/null +++ b/ErrorPage.aspx @@ -0,0 +1,15 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ErrorPage.aspx.cs" Inherits="DesktopModules_ErrorPage" %> + + + + + + 网站错误页面 + + + + +
+ + + diff --git a/ErrorPage.aspx.cs b/ErrorPage.aspx.cs new file mode 100644 index 0000000..12c65d0 --- /dev/null +++ b/ErrorPage.aspx.cs @@ -0,0 +1,15 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; + +public partial class DesktopModules_ErrorPage : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { diff --git a/Leaveword.aspx b/Leaveword.aspx new file mode 100644 index 0000000..b5e3ec0 --- /dev/null +++ b/Leaveword.aspx @@ -0,0 +1,15 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Leaveword.aspx.cs" Inherits="LeavewordPage" %> + + + + + + 留言板 |-51aspx.com + + + + +
+ + + diff --git a/Leaveword.aspx.cs b/Leaveword.aspx.cs new file mode 100644 index 0000000..9208b55 --- /dev/null +++ b/Leaveword.aspx.cs @@ -0,0 +1,15 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using System.Data.SqlClient; + +public partial class LeavewordPage : System.Web.UI.Page +{ + //该源码下载自www.51aspx.com(51aspx.com) diff --git a/LeavewordManage.aspx b/LeavewordManage.aspx new file mode 100644 index 0000000..7136301 --- /dev/null +++ b/LeavewordManage.aspx @@ -0,0 +1,15 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="LeavewordManage.aspx.cs" Inherits="LeavewordManage" %> + + + + + + 第10章:留言板===留言管理 + + + + +
用户留言:
+ + + diff --git a/LeavewordManage.aspx.cs b/LeavewordManage.aspx.cs new file mode 100644 index 0000000..ab6e944 --- /dev/null +++ b/LeavewordManage.aspx.cs @@ -0,0 +1,15 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using System.Data.SqlClient; +using System.Text; + +public partial class LeavewordManage : System.Web.UI.Page +{ diff --git a/ReplyManage.aspx b/ReplyManage.aspx new file mode 100644 index 0000000..7ba877d --- /dev/null +++ b/ReplyManage.aspx @@ -0,0 +1,15 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ReplyManage.aspx.cs" Inherits="ReplyManage" %> + + + + + + 留言板 |-51aspx.com + + + + +
留言管理
+ + + diff --git a/ReplyManage.aspx.cs b/ReplyManage.aspx.cs new file mode 100644 index 0000000..f128c49 --- /dev/null +++ b/ReplyManage.aspx.cs @@ -0,0 +1,15 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using System.Data.SqlClient; + +public partial class ReplyManage : System.Web.UI.Page +{ + //该源码下载自www.51aspx.com(51aspx.com) diff --git a/UserLogoff.aspx b/UserLogoff.aspx new file mode 100644 index 0000000..e400a0c --- /dev/null +++ b/UserLogoff.aspx @@ -0,0 +1,15 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserLogoff.aspx.cs" Inherits="UserLogoff" %> + + + + + + 无标题页 + + + +
+ +
+ + diff --git a/UserLogoff.aspx.cs b/UserLogoff.aspx.cs new file mode 100644 index 0000000..91ca906 --- /dev/null +++ b/UserLogoff.aspx.cs @@ -0,0 +1,15 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; + +public partial class UserLogoff : System.Web.UI.Page +{ + //该源码下载自www.51aspx.com(51aspx.com) + diff --git a/ValidateImage.aspx b/ValidateImage.aspx new file mode 100644 index 0000000..3bae749 --- /dev/null +++ b/ValidateImage.aspx @@ -0,0 +1,13 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ValidateImage.aspx.cs" Inherits="ValidateImage" %> + + + + + + Untitled Page + + + + + + diff --git a/ValidateImage.aspx.cs b/ValidateImage.aspx.cs new file mode 100644 index 0000000..67c6e5a --- /dev/null +++ b/ValidateImage.aspx.cs @@ -0,0 +1,15 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using System.Drawing.Drawing2D; +using System.Drawing.Imaging; +using System.Drawing.Text; +using System.Drawing; +using System.Text; diff --git a/ViewLeaveword.aspx b/ViewLeaveword.aspx new file mode 100644 index 0000000..1524382 --- /dev/null +++ b/ViewLeaveword.aspx @@ -0,0 +1,15 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ViewLeaveword.aspx.cs" Inherits="ViewLeaveword" %> + + + + + + 无标题页 + + + + +
回复管理
+ + diff --git a/ViewLeaveword.aspx.cs b/ViewLeaveword.aspx.cs new file mode 100644 index 0000000..8fbe4d2 --- /dev/null +++ b/ViewLeaveword.aspx.cs @@ -0,0 +1,15 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using System.Data.SqlClient; + +public partial class ViewLeaveword : System.Web.UI.Page +{ + private int nLeavewordID = -1; diff --git a/ViewReply.aspx b/ViewReply.aspx new file mode 100644 index 0000000..c9198f6 --- /dev/null +++ b/ViewReply.aspx @@ -0,0 +1,15 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ViewReply.aspx.cs" Inherits="ViewReply" %> + + + + + + 无标题页 + + + +
+ +
+ + diff --git a/ViewReply.aspx.cs b/ViewReply.aspx.cs new file mode 100644 index 0000000..552917e --- /dev/null +++ b/ViewReply.aspx.cs @@ -0,0 +1,15 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; + +public partial class ViewReply : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { diff --git a/web.config b/web.config new file mode 100644 index 0000000..6e3250b --- /dev/null +++ b/web.config @@ -0,0 +1,15 @@ + + + + + + + +
查看留言