master
editor 1 month ago
commit acc4adcc62

@ -0,0 +1,41 @@
浪漫雪弧许愿树源码
一、源码描述
环境VS2022 Access
二、功能介绍
1.开发环境VS2022+Access  开发语言C#.
2.有用户许愿页面, 按用户呢称,内容,许愿时间搜索功能,管理登录删除许愿内容,统计访问用户数和在线用户数.
3.该许愿树还使用了"母板页,DataList的分页功能,用户验证控件等等.
4.管理员的用户名是:admin        密码:51aspx
5.可以显示在线人数并有消息提示框
三、注意事项
1、在项目web.config修改数据库连接字符串附加数据库。
2、管理员账号与密码admin 51aspx 。
3、ctrl+F5运行即可。
作者: 一半情弧
如需获得该源码的视频、更新等更多资料请访问: https://www.51aspx.com/Code/AspnetXuyuanshu
------------------------------------------------------------------------------------------------
源码服务专家
官网: 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>
/// wishdb 的摘要说明
/// </summary>

@ -0,0 +1,15 @@
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="^_^☆圣诞许愿树☆^_^,欢迎您许愿" %>
<%@ Register Assembly="EeekSoft.Web.PopupWin" Namespace="EeekSoft.Web" TagPrefix="cc1" %>
<%-- 在此处添加内容控件 --%>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
<table border="0" height="253" width="760">
<tr>
<td nowrap="nowrap" style="font-weight: bold; font-size: 15px; color: white; height: 6px; background-color: #877c59; width: 782px;">你现在的位置-&gt;浪漫雪弧许愿板-&gt;首页</td>
</tr>
<tr>
<td nowrap="nowrap" style="height: 1px; width: 782px;">
<div align="center">
<strong><span style="font-size: 11pt; color: black">看看是否收到祝福</span></strong><asp:DropDownList
ID="DropDownList1" runat="server" BackColor="#BBAC85" Font-Bold="False" Height="20px" Style="font-weight: bold; font-size: 10pt; color: snow; background-color: #877c59;">
<asp:ListItem>您的昵称</asp:ListItem>

@ -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.OleDb ;
public partial class _Default : System.Web.UI.Page
{
//该源码下载自www.51aspx.com()

@ -0,0 +1,15 @@
<%@ Application Language="C#" %>
<%@ Import Namespace ="System.Data.OleDb"%>
<script runat="server">
string strcon;
void Application_Start(object sender, EventArgs e)
{
// 在应用程序启动时运行的代码
OleDbConnection con;
strcon = ("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Server.MapPath("DB_51Aspx/wish.mdb"));
con = new OleDbConnection(strcon);
con.Open();
OleDbCommand cmd = new OleDbCommand("select num from admin", con);
Application["tatol"] = Convert.ToInt32(cmd.ExecuteScalar());
Application["online"] = 0;

@ -0,0 +1,15 @@
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
<%@ Register Assembly="Meta.Web" Namespace="Meta.Web.Controls" TagPrefix="mc" %>
<%@ Register Assembly="Meta.Web" Namespace="Meta.Web.Controls.MasterPages" TagPrefix="mc" %>
<%@ Register Src="count.ascx" TagName="count" TagPrefix="uc1" %>
<!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">
<bgsound src="midi010.mid" loop="-1">
<title>^_^☆圣诞许愿树☆^_^,欢迎您许愿</title>
</head>
<body bgcolor="#bbac85"><base onmouseover="window.status='^_^☆圣诞许愿树☆^_^,欢迎您许愿';return true"></base>
<form id="form1" runat="server">
<div 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;
public partial class MasterPage : System.Web.UI.MasterPage
{
protected void Page_Load(object sender, EventArgs e)
{

@ -0,0 +1,15 @@
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="admin.aspx.cs" Inherits="admin" Title="^_^☆圣诞许愿树☆^_^,欢迎您许愿" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:Panel ID="Panel1" runat="server" Height="50px" Width="100%">
<table border="1" bordercolor="#cccc99" bordercolordark="#999933" bordercolorlight="#999933"
style="border-left-color: white; border-bottom-color: white; width: 777px; border-top-style: dotted;
border-top-color: white; border-right-style: dotted; border-left-style: dotted;
background-color: lightgoldenrodyellow; border-right-color: white; border-bottom-style: dotted">
<tr>
<td align="center" colspan="2" style="font-weight: bold; font-size: 15px; color: white;
height: 16px; background-color: #877c59">
你现在的位置-&gt;浪漫雪弧许愿板-&gt;管理员登录页面</td>
</tr>
<tr>
<td align="right" style="width: 170px; height: 21px">
用户名:</td>

@ -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.OleDb;
public partial class admin : System.Web.UI.Page
{
OleDbConnection cn;

@ -0,0 +1,14 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="count.ascx.cs" Inherits="count" %>
<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
<%@ Register Assembly="Meta.Web" Namespace="Meta.Web.Controls" TagPrefix="mc" %>
<table border="0" style="width: 239px; height: 18px">
<tr>
<td nowrap="nowrap" style="width: 205px; height: 37px;"><div align="center" style="font-weight: bold; font-size: 15px; color: white">
许愿板访问的人数为:<asp:Label ID="Label1" runat="server" Style="font-weight: bold; font-size: 15px;
color: red"></asp:Label></div></td>
<td width="180" nowrap="nowrap" style="height: 37px"><div align="center" style="font-weight: bold; font-size: 15px; color: white">
前在线的人数为:<asp:Label ID="Label2" runat="server" Style="font-weight: bold; font-size: 15px;
color: red"></asp:Label></div></td>
</tr>
</table>

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

@ -0,0 +1,11 @@
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="error.aspx.cs" Inherits="error" Title="^_^☆圣诞许愿树☆^_^,欢迎您许愿" %>
<%@ Register Assembly="Meta.Web" Namespace="Meta.Web.Controls" TagPrefix="mc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
&nbsp;<asp:Label ID="Label1" runat="server" Style="font-weight: bold; font-size: 15px;
color: white"></asp:Label><br />
<asp:HyperLink ID="HyperLink1" runat="server" Font-Overline="False" NavigateUrl="~/Default.aspx"
Style="font-weight: bold; font-size: 14px; color: white">返回首页</asp:HyperLink><br />
&nbsp;
</asp:Content>

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

@ -0,0 +1,15 @@
<%@ Page Language="C#" ValidateRequest ="false" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="post.aspx.cs" Inherits="post" Title="^_^☆圣诞许愿树☆^_^,欢迎您许愿" %>
<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div align="center">
</div>
<div align="center">
<table border="1" bordercolor="#cccc99" bordercolordark="#999933" bordercolorlight="#999933"
style="border-left-color: snow; border-bottom-color: snow; width: 772px; border-top-style: dotted;
border-top-color: snow; border-right-style: dotted; border-left-style: dotted;
background-color: lightgoldenrodyellow; border-right-color: snow; border-bottom-style: dotted">
<tr>
<td align="center" colspan="4" style="font-weight: bold; font-size: 15px; color: white;
height: 12px; background-color: #877c59">

@ -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.OleDb;
public partial class post : System.Web.UI.Page
{
//该源码下载自www.51aspx.com()

@ -0,0 +1,15 @@
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="sou.aspx.cs" Inherits="sou" Title="^_^☆圣诞许愿树☆^_^,欢迎您许愿" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table id="Table2" border="1" bordercolor="#cccc99" bordercolordark="#999933" bordercolorlight="#999933"
style="border-right: white dotted; border-top: white dotted; border-left: white dotted;
width: 772px; border-bottom: white dotted; background-color: lightgoldenrodyellow">
<tr>
<td align="center" colspan="3" style="font-weight: bold; font-size: 15px; color: white;
height: 21px; background-color: #877c59">
你现在的位置-&gt;浪漫雪弧许愿板-&gt;搜索页面</td>
</tr>
<tr>
<td align="center" style="width: 207px; height: 21px">
按呢称搜索:</td>
<td align="center" style="width: 738px; height: 21px">
&nbsp;<asp:DropDownList ID="DropDownList2" runat="server" BackColor="LightGoldenrodYellow">

@ -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.OleDb;
//该源码下载自www.51aspx.com()
public partial class sou : System.Web.UI.Page
Loading…
Cancel
Save