資源簡介
某學院仿百渡貼吧源碼
該系統是仿擺渡貼吧,具備所有貼吧功能:
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圖片水印修改
評論
共有 條評論