资源简介
某学院仿百渡贴吧源码
该系统是仿摆渡贴吧,具备所有贴吧功能:
1、用户注册
2、用户发贴,匿名用户发贴,图片发布等。
3、会员管理
4、吧主管理贴吧
5、管理员后台管理
DB_51aspx下为Sql数据库文件,附加即可
开发环境: VS2005 | 开发语言:C# 数据库SQL2000,后台编辑器:FreeTextBox
吧主: www
密码:wwww
后台管理地址:admin/admin_login.aspx,默认帐号密码均为51aspx
作者:李冰,发布者:漫步云端
源码下载及讨论地址:http://www.51aspx.com/CV/BaiDuTieBa
演示地址:http://bbs.akszy.com/

代码片段和文件信息
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.IO;
public partial class admin : System.Web.UI.Page
{
string gvuniqueID = string.Empty;
//int gvPageindex = 0;
//int gvEditindex = -1;
protected void Page_Load(object sender EventArgs e)
{
if (!Page.IsPostBack)
{
if (Session[“username“] != null && Session[“usertype“].ToString() == “1“)
{
pagelist();
}
else
{
Response.Redirect(“Userlogin.aspx“);
}
}
}
private void pagelist()
{
DataSet ds = new DataSet();
ds = sqlstore.seluserAriticle();
GridView1.DataSource = ds;
GridView1.DataBind();
}
public string showtype(object a)
{
string type = a.ToString();
if (type == “0“)
{
type = “精品“;
}
else
{
type = “取消精品“;
}
return type;
}
public string showtop(object a)
{
string type = a.ToString();
if (type == “0“)
{
type = “置顶“;
}
else
{
type = “取消置顶“;
}
return type;
}
protected void GridView1_OnRowCommand(object sender GridViewCommandEventArgs e)
{
int id =int.Parse(e.CommandArgument.ToString());
string cmd = e.CommandName.ToString();
switch (cmd)
{
case “type“:
string atype = sqlstore.seltype(id);
sqlstore.settype(atype id);
break;
case “top“:
string atop = sqlstore.seltop(id);
sqlstore.settop(atop id);
break;
//case “del“:
//sqlstore.delAriticle(id);
//break;
}
pagelist();
}
protected void GridView1_RowDeleting(object sender GridViewDeleteEventArgs e)//删除贴子信息
{
int id = int.Parse(((Label)GridView1.Rows[e.RowIndex].FindControl(“TextXu“)).Text);
string recall = ((Label)GridView1.Rows[e.RowIndex].FindControl(“TextBox2“)).Text;
string imgurl = ((Label)GridView1.Rows[e.RowIndex].FindControl(“Label1“)).Text;
if (recall != “0“)
{
Response.Write(“ript>alert(‘此贴包含回复贴,不能删除!‘);location.href(‘admin.aspx‘) ript>“);
}
else
{
if (imgurl == null || imgurl == ““)
{
sqlstore.delAriticle(id);
}
else
{
string path = Server.MapPath(“cutimg“) + “/“ + imgurl.Sub
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1890 2007-12-26 08:49 51aspx源码必读.txt
文件 10512 2007-11-09 17:47 admin.aspx
文件 7851 2007-11-14 18:40 admin.aspx.cs
文件 12506 2007-11-16 12:31 bestAriticle.aspx
文件 3736 2007-11-16 12:31 bestAriticle.aspx.cs
文件 168 2007-10-26 23:28 boot.ascx
文件 529 2007-12-26 08:39 boot.ascx.cs
文件 12285 2007-11-19 12:05 Default.aspx
文件 4088 2007-11-19 11:59 Default.aspx.cs
文件 4945 2007-07-18 09:38 from.gif
文件 1948 2007-08-24 12:32 ftb.imagegallery.aspx
文件 889 2007-11-15 18:40 Global.asax
文件 4189 2007-10-16 12:56 header.ascx
文件 414 2007-10-16 11:31 header.ascx.cs
文件 117 2007-10-18 22:02 licenses.licx
文件 7411 2007-11-16 12:58 reg.aspx
文件 2609 2007-11-14 18:19 reg.aspx.cs
文件 2493 2007-11-09 17:39 showContent.aspx
文件 5538 2007-11-14 18:40 showContent.aspx.cs
文件 12875 2007-11-16 12:30 showtieba.aspx
文件 4123 2007-11-16 12:30 showtieba.aspx.cs
文件 3462 2007-11-19 12:15 UserLogin.ascx
文件 1514 2007-11-19 12:17 UserLogin.ascx.cs
文件 1407 2007-11-19 12:21 Userlogin.aspx
文件 1465 2007-11-19 12:20 Userlogin.aspx.cs
文件 453 2007-09-15 21:34 ValidateCode.aspx
文件 2307 2007-09-16 12:37 ValidateCode.aspx.cs
文件 2135 2007-12-26 08:30 web.config
文件 125 2007-03-27 14:33 最新Asp.Net源码下载.url
文件 5080 2007-11-14 18:44 admin\admin_addadmin.aspx
............此处省略736个文件信息
- 上一篇:生成和读取条形码二维码C#
- 下一篇:ASP.NET Ueditor图片水印修改
相关资源
- 超市进销存管理系统 Sqlserver 数据库文
- asp.net C#购物车源代码
- 智慧城市 智能家居 C# 源代码
- c# winform 自动登录 百度账户 源代码
- C# 使用ListView控件实现图片浏览器(源
- C# TCP通讯组件源代码
- C#版IE浏览器源代码
- C#使用GDI 绘制汽车车速表等量表源代
- 用C#绘制正弦曲线,要用到Form1_Resiz
- 随机抽题系统C#源代码
- 医院业务管理系统(C#源代码)
- 远程监控(C#源代码)
- AssetStudio V0.16.0 源代码 使用VS2019
- 热血江湖20服务端源代码
- C# 取色工具源代码(RGB)
- C# 人员随机分组抽签工具及源代码
- C# Access版资产管理系统源代码
- 酒店电子管理系统winform源代码(附数
- 研究生信息管理系统(附数据库)
- C#图书管理系统(源代码+数据库+系统
- WPF翻页照片特效浏览源代码
- 《C#面向对象程序设计》源代码(CS)
- [源代码] 《领域驱动设计 (C# 2008 实
- asp.net 在线聊天室系统源代码.rar
- C#锁屏软件(真正禁用ctrl+alt+del,含源
- zw_ASP.NET通用权限管理系统源代码含文
- delta机器人运动学算法正向逆向求解
- OA系统+手机版源码t源代码
- C#斗地主源代码
- C#项目开发案例全程实录源代码
评论
共有 条评论