commit 74bee44d80a10857b86a0c5857feb97a097720e1 Author: editor <@51Aspx.com> Date: Mon Jun 24 16:17:58 2024 +0800 初始化 diff --git a/51Aspx源码必读.txt b/51Aspx源码必读.txt new file mode 100644 index 0000000..0bb59e2 --- /dev/null +++ b/51Aspx源码必读.txt @@ -0,0 +1,39 @@ +ASPNET2BBS示例论坛源码 + +一、源码描述 +环境:VS2022 sql2019 + +二、功能介绍 +该源码主要展示了Asp.net2.0中简单的论坛开发应用(发帖、用户管理、角色管理等),利用了其中的TreeView进行菜单控制, +数据库操作利用了SqlHelper,自定义了一些简单数据操作函数,公用部分采用了用户控件调用。 +该论坛功能非常简单,页面设计也相对粗糙,采用VS2005+Sql2000开发,App_Data下为数据库文件,附加即可,默认管理员账号密码均为51aspx + +三、注意事项 +1、在项目web.config修改数据库连接字符串,附加数据库。 +2、管理员账号与密码:51aspx 51aspx 。 +3、ctrl+F5运行即可。 + + + + + +作者: 一半情弧 + +如需获得该源码的视频、更新等更多资料请访问: https://www.51aspx.com/Code/ASPNET2BBS +------------------------------------------------------------------------------------------------ + + 源码服务专家 + 官网: 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/ASPNET2System.cs b/App_Code/ASPNET2System.cs new file mode 100644 index 0000000..8f5d98b --- /dev/null +++ b/App_Code/ASPNET2System.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; + +namespace ASPNET2BBS +{ + /// + /// Summary description for ASPNET2System + /// diff --git a/App_Code/BBSData.cs b/App_Code/BBSData.cs new file mode 100644 index 0000000..459e819 --- /dev/null +++ b/App_Code/BBSData.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; +using SQLHelper; + +namespace ASPNET2BBS +{ + public class AttachmentsInfo diff --git a/App_Code/Category.cs b/App_Code/Category.cs new file mode 100644 index 0000000..37970c3 --- /dev/null +++ b/App_Code/Category.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; +using SQLHelper; + +namespace ASPNET2BBS +{ + /// diff --git a/App_Code/Role.cs b/App_Code/Role.cs new file mode 100644 index 0000000..37970c3 --- /dev/null +++ b/App_Code/Role.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; +using SQLHelper; + +namespace ASPNET2BBS +{ + /// diff --git a/App_Code/Tree.cs b/App_Code/Tree.cs new file mode 100644 index 0000000..dbab6bd --- /dev/null +++ b/App_Code/Tree.cs @@ -0,0 +1,15 @@ +using System; +using System.Data; +using System.Web.UI; +using System.Web.UI.WebControls; +using SQLHelper; +using System.Data.SqlClient; + +namespace ASPNET2BBS +{ + /// + /// Summary description for Tree + /// + public class Tree + { + public static string ApplicationPath = "localhost"; diff --git a/App_Code/User.cs b/App_Code/User.cs new file mode 100644 index 0000000..c6e4a44 --- /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.Security.Cryptography; +using SQLHelper; +using System.Data.SqlClient; +using System.Text; + +namespace ASPNET2BBS diff --git a/CSS/ASPNET2BaseCss.css b/CSS/ASPNET2BaseCss.css new file mode 100644 index 0000000..349bf77 --- /dev/null +++ b/CSS/ASPNET2BaseCss.css @@ -0,0 +1,15 @@ +.Text { font-size: 9pt} +.Newbutton +{ font-size: 9pt; color: White; + font-family: "Tahoma","����"; + + } +.InputCss { + font-size: 9pt; + color: #003399; + font-family: "����"; + font-style: normal; + /*background-color: #CCCC99; */ + border-color: #93BEE2 #93BEE2 #93BEE2 #93BEE2 ; + border: 1px #93BEE2 solid; +} diff --git a/CSS/ASPNET2NoLinkCss.css b/CSS/ASPNET2NoLinkCss.css new file mode 100644 index 0000000..349bf77 --- /dev/null +++ b/CSS/ASPNET2NoLinkCss.css @@ -0,0 +1,15 @@ +.Text { font-size: 9pt} +.Newbutton +{ font-size: 9pt; color: White; + font-family: "Tahoma","����"; + + } +.InputCss { + font-size: 9pt; + color: #003399; + font-family: "����"; + font-style: normal; + /*background-color: #CCCC99; */ + border-color: #93BEE2 #93BEE2 #93BEE2 #93BEE2 ; + border: 1px #93BEE2 solid; +} diff --git a/CSS/ASPNET2Normal.css b/CSS/ASPNET2Normal.css new file mode 100644 index 0000000..349bf77 --- /dev/null +++ b/CSS/ASPNET2Normal.css @@ -0,0 +1,15 @@ +.Text { font-size: 9pt} +.Newbutton +{ font-size: 9pt; color: White; + font-family: "Tahoma","����"; + + } +.InputCss { + font-size: 9pt; + color: #003399; + font-family: "����"; + font-style: normal; + /*background-color: #CCCC99; */ + border-color: #93BEE2 #93BEE2 #93BEE2 #93BEE2 ; + border: 1px #93BEE2 solid; +} diff --git a/CSS/ASPNET2WebNormal.css b/CSS/ASPNET2WebNormal.css new file mode 100644 index 0000000..7c9a199 --- /dev/null +++ b/CSS/ASPNET2WebNormal.css @@ -0,0 +1,15 @@ +/* ================================ + CSS STYLES FOR IBUYSPY PORTAL + v1.0, 01/2001 + ================================ +*/ + + +/* PAGE BACKGROUND */ +/* background color for the header at the top of the page */ +.HeadBg +{ + background-color: darkred; +} + +/* background color for the content part of the pages */ diff --git a/CSS/Calendar.css b/CSS/Calendar.css new file mode 100644 index 0000000..c5a1698 --- /dev/null +++ b/CSS/Calendar.css @@ -0,0 +1,13 @@ +.C_FieldT { font-size: 9px; color: #000000; font-family: "Times New Roman", "Times", "serif"} +.C_Date { font-size: 9px; color: #000000; font-family: "Times New Roman", "Times", "serif"} +.C_YearT { font-size: 12px; color: #000000}.C_Button { font-family: "Times New Roman", "Times", "serif"; font-size: 10px} +.C_Clock { font-size: 14px; color: #000000; font-family: "Times New Roman", "Times", "serif"} +.C_Button{ + font-family: "Tahoma", "����"; + font-size: 12px; + color: White; + border: 1px solid ; + + font-style: normal ; + width: 20px; +} diff --git a/CSS/Search.css b/CSS/Search.css new file mode 100644 index 0000000..2b33642 --- /dev/null +++ b/CSS/Search.css @@ -0,0 +1 @@ +.Search_Txt { font-size: 9pt} diff --git a/CSS/TreeView.css b/CSS/TreeView.css new file mode 100644 index 0000000..70fc0c5 --- /dev/null +++ b/CSS/TreeView.css @@ -0,0 +1,15 @@ +body +{ + font-family:"Verdana", "Arial", "����"; font-size: 9pt; line-height: 14pt; + SCROLLBAR-3DLIGHT-COLOR: #cccccc; + SCROLLBAR-ARROW-COLOR: #333333; + SCROLLBAR-DARKSHADOW-COLOR: #cccccc; + SCROLLBAR-BASE-COLOR: #cccccc; +} + +/* PAGE BACKGROUND */ +/* background color for the header at the top of the page */ +.HeadBg +{ + background-color: darkred; +} diff --git a/Default.aspx b/Default.aspx new file mode 100644 index 0000000..ec97a7c --- /dev/null +++ b/Default.aspx @@ -0,0 +1,15 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %> +<%@ Register TagPrefix="ucTop" TagName="TopBanner" Src="UserControls/TopBanner.ascx" %> +<%@ Register TagPrefix="ucBottom" TagName="BottomBanner" Src="UserControls/BottomBanner.ascx" %> + + + + + ASPNET2.0BBS + + + + + + + diff --git a/Default.aspx.cs b/Default.aspx.cs new file mode 100644 index 0000000..0b40162 --- /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; + +public partial class Default : System.Web.UI.Page +{ + static string sValidator = ""; diff --git a/DesktopModules/BBS/AddContent.aspx b/DesktopModules/BBS/AddContent.aspx new file mode 100644 index 0000000..11c0d66 --- /dev/null +++ b/DesktopModules/BBS/AddContent.aspx @@ -0,0 +1,15 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddContent.aspx.cs" Inherits="DesktopModules_BBS_AddContent" %> + + + + + + �����µ����� + + + + + + + +
diff --git a/DesktopModules/BBS/AddContent.aspx.cs b/DesktopModules/BBS/AddContent.aspx.cs new file mode 100644 index 0000000..4515110 --- /dev/null +++ b/DesktopModules/BBS/AddContent.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 ASPNET2BBS; +using System.Data.SqlClient; +using System.IO; + +public partial class DesktopModules_BBS_AddContent : System.Web.UI.Page diff --git a/DesktopModules/BBS/AddTitle.aspx b/DesktopModules/BBS/AddTitle.aspx new file mode 100644 index 0000000..d624eda --- /dev/null +++ b/DesktopModules/BBS/AddTitle.aspx @@ -0,0 +1,15 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddTitle.aspx.cs" Inherits="DesktopModules_BBS_AddTitle" %> + + + + + + �����µĻ��� + + + + + + + + diff --git a/DesktopModules/BBS/AddTitle.aspx.cs b/DesktopModules/BBS/AddTitle.aspx.cs new file mode 100644 index 0000000..44b35f9 --- /dev/null +++ b/DesktopModules/BBS/AddTitle.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 ASPNET2BBS; +using System.Data.SqlClient; +using System.IO; + +public partial class DesktopModules_BBS_AddTitle : System.Web.UI.Page diff --git a/DesktopModules/BBS/BBSContent.aspx b/DesktopModules/BBS/BBSContent.aspx new file mode 100644 index 0000000..74981cb --- /dev/null +++ b/DesktopModules/BBS/BBSContent.aspx @@ -0,0 +1,15 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BBSContent.aspx.cs" Inherits="DesktopModules_BBS_BBSContent" %> + + + + + + Ŀ¼�б� + + + + + + +
+ diff --git a/DesktopModules/BBS/BBSContent.aspx.cs b/DesktopModules/BBS/BBSContent.aspx.cs new file mode 100644 index 0000000..daf43e1 --- /dev/null +++ b/DesktopModules/BBS/BBSContent.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 ASPNET2BBS; +using SQLHelper; + +public partial class DesktopModules_BBS_BBSContent : System.Web.UI.Page diff --git a/DesktopModules/BBS/BBSDirectory.aspx b/DesktopModules/BBS/BBSDirectory.aspx new file mode 100644 index 0000000..02cd923 --- /dev/null +++ b/DesktopModules/BBS/BBSDirectory.aspx @@ -0,0 +1,15 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BBSDirectory.aspx.cs" Inherits="DesktopModules_BBS_BBSDirectory" %> + + + + + + Ŀ¼�б� + + + + + + +
+ diff --git a/DesktopModules/BBS/BBSDirectory.aspx.cs b/DesktopModules/BBS/BBSDirectory.aspx.cs new file mode 100644 index 0000000..3cf3eea --- /dev/null +++ b/DesktopModules/BBS/BBSDirectory.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 SQLHelper; +using ASPNET2BBS; + +public partial class DesktopModules_BBS_BBSDirectory : System.Web.UI.Page diff --git a/DesktopModules/BBS/BBSTitle.aspx b/DesktopModules/BBS/BBSTitle.aspx new file mode 100644 index 0000000..337f0dd --- /dev/null +++ b/DesktopModules/BBS/BBSTitle.aspx @@ -0,0 +1,15 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BBSTitle.aspx.cs" Inherits="DesktopModules_BBS_BBSTitle" %> + + + + + + �����б� + + + + + + + diff --git a/DesktopModules/BBS/BBSTitle.aspx.cs b/DesktopModules/BBS/BBSTitle.aspx.cs new file mode 100644 index 0000000..97fd1f1 --- /dev/null +++ b/DesktopModules/BBS/BBSTitle.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 SQLHelper; +using ASPNET2BBS; + +public partial class DesktopModules_BBS_BBSTitle : System.Web.UI.Page diff --git a/DesktopModules/BBS/DeleteContent.aspx b/DesktopModules/BBS/DeleteContent.aspx new file mode 100644 index 0000000..8210c0b --- /dev/null +++ b/DesktopModules/BBS/DeleteContent.aspx @@ -0,0 +1,15 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DeleteContent.aspx.cs" Inherits="DesktopModules_BBS_DeleteContent" %> + + + + + + Untitled Page + + + +
+ +
+ + diff --git a/DesktopModules/BBS/DeleteContent.aspx.cs b/DesktopModules/BBS/DeleteContent.aspx.cs new file mode 100644 index 0000000..776bf52 --- /dev/null +++ b/DesktopModules/BBS/DeleteContent.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_BBS_DeleteContent : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { diff --git a/DesktopModules/BBS/MasterManage.aspx b/DesktopModules/BBS/MasterManage.aspx new file mode 100644 index 0000000..88387d3 --- /dev/null +++ b/DesktopModules/BBS/MasterManage.aspx @@ -0,0 +1,15 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MasterManage.aspx.cs" Inherits="DesktopModules_BBS_MasterManage" %> + + + + + + Untitled Page + + + +
+ +
+ + diff --git a/DesktopModules/BBS/MasterManage.aspx.cs b/DesktopModules/BBS/MasterManage.aspx.cs new file mode 100644 index 0000000..9a221e5 --- /dev/null +++ b/DesktopModules/BBS/MasterManage.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_BBS_MasterManage : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { diff --git a/DesktopModules/BBS/UpdateContent.aspx b/DesktopModules/BBS/UpdateContent.aspx new file mode 100644 index 0000000..d815121 --- /dev/null +++ b/DesktopModules/BBS/UpdateContent.aspx @@ -0,0 +1,15 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UpdateContent.aspx.cs" Inherits="DesktopModules_BBS_UpdateContent" %> + + + + + + �޸����� + + + + + + + + diff --git a/DesktopModules/BBS/UpdateContent.aspx.cs b/DesktopModules/BBS/UpdateContent.aspx.cs new file mode 100644 index 0000000..8e796f7 --- /dev/null +++ b/DesktopModules/BBS/UpdateContent.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 ASPNET2BBS; +using System.Data.SqlClient; + +public partial class DesktopModules_BBS_UpdateContent : System.Web.UI.Page +{ diff --git a/DesktopModules/BBS/UpdateTitle.aspx b/DesktopModules/BBS/UpdateTitle.aspx new file mode 100644 index 0000000..a26320d --- /dev/null +++ b/DesktopModules/BBS/UpdateTitle.aspx @@ -0,0 +1,15 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UpdateTitle.aspx.cs" Inherits="DesktopModules_BBS_UpdateTitle" %> + + + + + + �޸Ļ��� + + + + + + + + diff --git a/DesktopModules/BBS/UpdateTitle.aspx.cs b/DesktopModules/BBS/UpdateTitle.aspx.cs new file mode 100644 index 0000000..edc1db4 --- /dev/null +++ b/DesktopModules/BBS/UpdateTitle.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 ASPNET2BBS; +using System.Data.SqlClient; + +public partial class DesktopModules_BBS_UpdateTitle : System.Web.UI.Page +{ diff --git a/DesktopModules/Category/CategoryManage.aspx b/DesktopModules/Category/CategoryManage.aspx new file mode 100644 index 0000000..95c6084 --- /dev/null +++ b/DesktopModules/Category/CategoryManage.aspx @@ -0,0 +1,15 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CategoryManage.aspx.cs" Inherits="CategoryManage" %> + + + + + + 类别管理页面 + + + + +
 [�����»���] +
+ +
+ diff --git a/DesktopModules/Category/CategoryManage.aspx.cs b/DesktopModules/Category/CategoryManage.aspx.cs new file mode 100644 index 0000000..d66389f --- /dev/null +++ b/DesktopModules/Category/CategoryManage.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 ASPNET2BBS; +using System.Data.SqlClient; + +public partial class CategoryManage : System.Web.UI.Page +{ diff --git a/DesktopModules/Index.aspx b/DesktopModules/Index.aspx new file mode 100644 index 0000000..8e2209e --- /dev/null +++ b/DesktopModules/Index.aspx @@ -0,0 +1,15 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Index.aspx.cs" Inherits="Index" %> + + + + + ASPNET2.0BBS + + + + + + + + + diff --git a/DesktopModules/Index.aspx.cs b/DesktopModules/Index.aspx.cs new file mode 100644 index 0000000..40da646 --- /dev/null +++ b/DesktopModules/Index.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 Index : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { diff --git a/DesktopModules/LeftTree.aspx b/DesktopModules/LeftTree.aspx new file mode 100644 index 0000000..edd11cc --- /dev/null +++ b/DesktopModules/LeftTree.aspx @@ -0,0 +1,15 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="LeftTree.aspx.cs" Inherits="LeftTree" %> + + + + ASPNET2.0BBS + + + + + +