资源简介
比较完整的网上论坛,使用的是C#写的ASP.Net网页编写的,这是花了一个多月的时间写的,做为大家的参考吧!
代码片段和文件信息
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.xml.Linq;
using BBS.Modles;
using BBS.BLL;
public partial class AddAdmin : System.Web.UI.Page
{
private UserManager newdao = null;
private string Message = ““;
protected void Page_Load(object sender EventArgs e)
{
if (!Page.IsPostBack)
{
Label1.Text = DateTime.Now.ToShortDateString();
}
}
protected void BtnAdd_Click(object sender EventArgs e)
{
if (Page.IsValid)
{
if (Label3.Text == “此账号可以使用!“)
{
string strName = TextBox1.Text.Trim();
string strPwd = FormsAuthentication.HashPasswordForStoringInConfigFile(Label2.Text “MD5“);
string strTime = Label1.Text;
Backstages admin = new Backstages();
admin.LoginName = strName;
admin.LoginPWD = strPwd;
admin.RightID = “1“;
admin.CreateDate = Convert.ToDateTime(strTime);
newdao = new UserManager();
Message = newdao.AddAdmin(admin);
//Response.Write(“ript>alert(‘“+Message+“‘) ript>“);
//Server.Transfer(“AdminManage.aspx“);
Response.Write(“ript>alert(‘“ + Message + “‘);window.location=‘AdminManage.aspx‘ ript>“);
}
else
{
Response.Write(“ript>alert(‘此账号已经存在!‘) ript>“);
}
}
}
protected void btnreset_Click(object sender EventArgs e)
{
Response.Redirect(“AdminManage.aspx“);
}
protected void TextBox1_TextChanged(object sender EventArgs e)
{
string name = TextBox1.Text.Trim();
BBS.BLL.AdminManager newdao = new AdminManager();
string message = newdao.GetAdminIsexit(name);
Label3.Text = message;
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 64512 2010-11-17 09:08 TodayThemBSS\BBS功能说明书.doc
文件 69120 2010-11-16 20:24 TodayThemBSS\BBS用户功能说明书\BBS功能说明书.doc
文件 3145728 2010-12-03 12:12 TodayThemBSS\DB\TodayTeam_dat.mdf
文件 3145728 2010-12-03 12:12 TodayThemBSS\DB\TodayTeam_log.ldf
文件 5539 2008-12-09 17:22 TodayThemBSS\Todayteam\back\AddAdmin.aspx
文件 2258 2008-12-09 17:28 TodayThemBSS\Todayteam\back\AddAdmin.aspx.cs
文件 4856 2008-12-06 10:21 TodayThemBSS\Todayteam\back\AddNews.aspx
文件 2843 2008-12-09 12:15 TodayThemBSS\Todayteam\back\AddNews.aspx.cs
文件 6102 2008-12-10 08:06 TodayThemBSS\Todayteam\back\AddPlate.aspx
文件 4576 2008-12-10 09:46 TodayThemBSS\Todayteam\back\AddPlate.aspx.cs
文件 5591 2008-12-10 08:06 TodayThemBSS\Todayteam\back\AddTheme.aspx
文件 4078 2008-12-10 09:46 TodayThemBSS\Todayteam\back\AddTheme.aspx.cs
文件 2457 2008-12-10 09:46 TodayThemBSS\Todayteam\back\AdiminCenter.aspx
文件 1277 2008-12-10 09:46 TodayThemBSS\Todayteam\back\AdiminCenter.aspx.cs
文件 4405 2008-12-09 12:15 TodayThemBSS\Todayteam\back\AdminManage.aspx
文件 2702 2008-12-03 07:52 TodayThemBSS\Todayteam\back\AdminManage.aspx.cs
文件 3803 2008-11-25 14:23 TodayThemBSS\Todayteam\back\App_Code\CheckCode.cs
文件 771 2008-11-25 14:23 TodayThemBSS\Todayteam\back\App_Code\Cuts.cs
..A.SHR 126 2008-11-25 14:24 TodayThemBSS\Todayteam\back\App_Code\vssver2.scc
文件 11734 2008-12-09 14:40 TodayThemBSS\Todayteam\back\ArticleManage.aspx
文件 11793 2008-12-10 08:06 TodayThemBSS\Todayteam\back\ArticleManage.aspx.cs
文件 22528 2008-12-10 08:06 TodayThemBSS\Todayteam\back\Bin\BBSBLL.dll
文件 62 2008-11-26 11:49 TodayThemBSS\Todayteam\back\Bin\BBSBLL.dll.refresh
文件 95744 2008-12-10 08:06 TodayThemBSS\Todayteam\back\Bin\BBSBLL.pdb
文件 64512 2008-12-10 08:05 TodayThemBSS\Todayteam\back\Bin\BBSDAL.dll
文件 140800 2008-12-10 08:05 TodayThemBSS\Todayteam\back\Bin\BBSDAL.pdb
文件 12800 2008-12-09 15:29 TodayThemBSS\Todayteam\back\Bin\BBSModles.dll
文件 71168 2008-12-09 15:29 TodayThemBSS\Todayteam\back\Bin\BBSModles.pdb
..A.SHR 68 2008-12-08 13:32 TodayThemBSS\Todayteam\back\Bin\vssver2.scc
文件 448 2008-11-25 14:22 TodayThemBSS\Todayteam\back\ChecksCode.aspx
............此处省略469个文件信息
- 上一篇:C#网站源码!学习专用!
- 下一篇:企业订单管理系统源码
评论
共有 条评论