master
editor 1 day ago
commit 59aea7cd8c

@ -0,0 +1,42 @@
四夕留言板源码
一、源码描述
环境VS2022 sql2019
二、功能介绍
一个简单留言板源码,可以进行简单的管理和删除
首页弹出窗口可以显示客户端ip地址
DB_51Aspx下为Sql数据库附加即可
默认管理员帐号/密码51aspx/51aspx
三、注意事项
1、在项目web.config修改数据库连接字符串附加数据库。
2、管理员账号与密码51aspx 51aspx 。
3、ctrl+F5运行即可。
作者: 良子
如需获得该源码的视频、更新等更多资料请访问: https://www.51aspx.com/Code/SixiLiuyanban
------------------------------------------------------------------------------------------------
源码服务专家
官网: 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

@ -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;
/// <summary>
/// DB 的摘要说明
/// </summary>
public class DB

@ -0,0 +1,15 @@
<%@ Application Language="C#" %>
<%@ Import Namespace="System.Data.SqlClient" %>
<script runat="server">
void Application_Start(object sender, EventArgs e)
{
// 在应用程序启动时运行的代码
SqlConnection con = DB.createcon();
con.Open();
SqlCommand cmd = new SqlCommand("select num from adminconfig", con);
Application["tatol"] = Convert.ToInt32(cmd.ExecuteScalar());
Application["online"] = 0;
}

@ -0,0 +1,10 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="foot.ascx.cs" Inherits="foot" %>
<div style="font-size: 20pt; z-index: 101; left: 192px; width: 615px;
color: blue; top: 861px; height: 1px; background-color: #ccffff;
text-align: center">
<br />
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
<asp:Label ID="Label2" runat="server" Text="Label"></asp:Label><br />
版权归四夕所保留,<a href="http://www.51aspx.com/" target="_blank" title="Asp.net源码下载专业站">download from 51aspx.com</a>
</div>

@ -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 foot : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{

@ -0,0 +1,11 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="gui.ascx.cs" Inherits="gui" %>
<div style="z-index: 101; left: 133px; width: 636px; top: 183px;
height: 24px; background-color: #0099ff; text-align: center">
<asp:HyperLink ID="HyperLink1" runat="server" BackColor="#C0C0FF" ForeColor="Red"
Height="24px" Width="58px" NavigateUrl="~/index.aspx">首页</asp:HyperLink>
&nbsp; &nbsp;
<asp:HyperLink ID="HyperLink2" runat="server" BackColor="#C0C0FF" ForeColor="Red"
Height="23px" Width="86px" NavigateUrl="~/post.aspx">发表留言</asp:HyperLink>
&nbsp; &nbsp;
<asp:HyperLink ID="HyperLink3" runat="server" BackColor="#C0C0FF" ForeColor="Red"
Height="23px" Width="94px" NavigateUrl="~/login.aspx">管理登陆</asp:HyperLink></div>

@ -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 gui : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{

@ -0,0 +1,11 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="header.ascx.cs" Inherits="header" %>
<table style="clear: none; left: 2px; width: 869px; position: relative; top: 8px;
height: 142px">
<tr>
<td style="clear: none; width: 75px; position: relative; height: 138px; background-color: #99cc33">
<asp:Label ID="Label1" runat="server" Font-Names="隶书" Font-Size="XX-Large" ForeColor="Green"
Height="46px" Style="font-size: 80pt; left: 156px; position: relative; top: 10px;
background-color: #ccccff" Text="四夕留言板" Width="566px"></asp:Label></td>
</tr>
</table>
&nbsp;

@ -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 header : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{

@ -0,0 +1,15 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="index" %>
<%@ Register Assembly="EeekSoft.Web.PopupWin" Namespace="EeekSoft.Web" TagPrefix="cc1" %>
<%@ Register Src="header.ascx" TagName="header" TagPrefix="uc1" %>
<%@ Register Src="gui.ascx" TagName="gui" TagPrefix="uc2" %>
<%@ Register Src="foot.ascx" TagName="foot" TagPrefix="uc3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>四夕留言板</title>
</head>
<body background="image/1.jpg">

@ -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 index : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)

@ -0,0 +1,15 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="login" %>
<%@ Register Src="header.ascx" TagName="header" TagPrefix="uc1" %>
<%@ Register Src="gui.ascx" TagName="gui" TagPrefix="uc2" %>
<%@ Register Src="foot.ascx" TagName="foot" TagPrefix="uc3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
<script language="javascript" type="text/javascript">
// <!CDATA[
function TABLE1_onclick() {

@ -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 login : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)

@ -0,0 +1,15 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="post.aspx.cs" Inherits="post" %>
<%@ Register Src="header.ascx" TagName="header" TagPrefix="uc1" %>
<%@ Register Src="gui.ascx" TagName="gui" TagPrefix="uc2" %>
<%@ Register Src="foot.ascx" TagName="foot" TagPrefix="uc3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>无标题页</title>
</head>
<body background="image/1.jpg">
<form id="form1" runat="server">
<div style="vertical-align: top; text-align: center">

@ -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 post : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)

@ -0,0 +1,15 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="reply.aspx.cs" Inherits="reply" %>
<%@ Register Src="header.ascx" TagName="header" TagPrefix="uc1" %>
<%@ Register Src="gui.ascx" TagName="gui" TagPrefix="uc2" %>
<%@ Register Src="foot.ascx" TagName="foot" TagPrefix="uc3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
</head>
<body background="image/1.jpg">
<form id="form1" runat="server">
<div>

@ -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 reply : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)

@ -0,0 +1,15 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="showmes.aspx.cs" Inherits="showmes" %>
<%@ Register Src="header.ascx" TagName="header" TagPrefix="uc1" %>
<%@ Register Src="gui.ascx" TagName="gui" TagPrefix="uc2" %>
<%@ Register Src="foot.ascx" TagName="foot" TagPrefix="uc3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
</head>
<body background="image/1.jpg">
<form id="form1" runat="server">
<div style="clear: none; position: relative">

@ -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;
//s
public partial class showmes : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Loading…
Cancel
Save