From 6045cff9baad42436f259f0624bf31f56d774a09 Mon Sep 17 00:00:00 2001 From: editor <@51Aspx.com> Date: Tue, 15 Oct 2024 17:28:12 +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 | 46 ++++++++++++++++++++++++++++++++++++++++++ App_Code/SqlHelper.cs | 15 ++++++++++++++ Book_Add.aspx | 1 + Book_Add.aspx.cs | 15 ++++++++++++++ Book_Get.aspx | 15 ++++++++++++++ Book_Get.aspx.cs | 15 ++++++++++++++ Book_List.aspx | 15 ++++++++++++++ Book_List.aspx.cs | 15 ++++++++++++++ VerifyCode.aspx | 1 + VerifyCode.aspx.cs | 15 ++++++++++++++ js/jquery-3.5.1.js | 15 ++++++++++++++ 11 files changed, 168 insertions(+) create mode 100644 51Aspx源码必读.txt create mode 100644 App_Code/SqlHelper.cs create mode 100644 Book_Add.aspx create mode 100644 Book_Add.aspx.cs create mode 100644 Book_Get.aspx create mode 100644 Book_Get.aspx.cs create mode 100644 Book_List.aspx create mode 100644 Book_List.aspx.cs create mode 100644 VerifyCode.aspx create mode 100644 VerifyCode.aspx.cs create mode 100644 js/jquery-3.5.1.js diff --git a/51Aspx源码必读.txt b/51Aspx源码必读.txt new file mode 100644 index 0000000..ad23333 --- /dev/null +++ b/51Aspx源码必读.txt @@ -0,0 +1,46 @@ +AJAX+ACCESS简单留言本 + +一、源码描述 +环境:VS2022 Access + +二、功能介绍 +1: vs2005 + ajax + Access 开发 +2: 格式简洁,便于理解,修改 +3:引用Access 版 SqlHelper 便于向SqlServer 迁移, +4:个人觉得亮点是取得留言页面重写Render方法,结合应用的数据显示控件,便于修改布局 +5: 添加留言须输入验证码,可以点击自动更换 + +js 中还有很多可优化的地方; +下一个版本中再提供回复,删除等功能 +代码列表页:Book_List.aspx +程序运行入口:http://localhost:13717/Book_List.aspx + +三、注意事项 +1、在项目web.config修改数据库连接字符串,附加数据库。 +2、ctrl+F5运行即可。 + + + + + + +作者: Bonnibell + +如需获得该源码的视频、更新等更多资料请访问: https://www.51aspx.com/Code/AjaxAccessGuestbook +------------------------------------------------------------------------------------------------ + + 源码服务专家 + 官网: 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/App_Code/SqlHelper.cs b/App_Code/SqlHelper.cs new file mode 100644 index 0000000..2022d67 --- /dev/null +++ b/App_Code/SqlHelper.cs @@ -0,0 +1,15 @@ +using System; +using System.Data; +using System.Data.OleDb; +//��Դ��������www.51aspx.com(����a����������) + + +/// +/// Written: [China] Zhao Zhe +/// Date: Sep. 2004 +/// Version 1.0 +/// Support MyBask +/// Looking for the latest version or similar implentation of this function, please visit: +/// +/// Purpose: +/// To make connection to access easier.a Access version of SqlHelper. diff --git a/Book_Add.aspx b/Book_Add.aspx new file mode 100644 index 0000000..89b7062 --- /dev/null +++ b/Book_Add.aspx @@ -0,0 +1 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Book_Add.aspx.cs" Inherits="Book_Add" %> diff --git a/Book_Add.aspx.cs b/Book_Add.aspx.cs new file mode 100644 index 0000000..91825d9 --- /dev/null +++ b/Book_Add.aspx.cs @@ -0,0 +1,15 @@ +///************************** +/// 创 建 者:Bonnibell +/// 创建日期:2008-11-20 +/// 所属模块:留言板 +/// 功  能: +/// 接受参数: +/// 含数据表: +///**********51aspx*** +using System; +using System.Data; +using System.Data.OleDb; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; diff --git a/Book_Get.aspx b/Book_Get.aspx new file mode 100644 index 0000000..94f8a0e --- /dev/null +++ b/Book_Get.aspx @@ -0,0 +1,15 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Book_Get.aspx.cs" Inherits="Book_Get" %> + + + + + Untitled Page + + +
+ + + + +
+ ���Գƺ���<%# Eval("F_Name")%>(<%# Eval("F_AddTime")%>) diff --git a/Book_Get.aspx.cs b/Book_Get.aspx.cs new file mode 100644 index 0000000..2af2314 --- /dev/null +++ b/Book_Get.aspx.cs @@ -0,0 +1,15 @@ +///************************** +/// 创 建 者:Bonnibell +/// 创建日期:2008-11-20 +/// 所属模块:留言板 +/// 功  能: +/// 接受参数: +/// 含数据表: +///************************** +using System; +using System.Data; +using System.Data.OleDb; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; diff --git a/Book_List.aspx b/Book_List.aspx new file mode 100644 index 0000000..cbe4698 --- /dev/null +++ b/Book_List.aspx @@ -0,0 +1,15 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Book_List.aspx.cs" Inherits="Book_List" %> + + + + + +