看上去还不错...
有演示地址吗,想看一下具体功能,感谢您...
很好的学习资料...
为啥打不开。。我用vs2005都带不开。。。说要转换VS?什么意思?
发表文章部分若换成CuteEditor数据库连接怎么处理? public partial class Module_Blog_AddArt : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (Session["UserName"] == null) { Response.Redirect("../../Index.aspx"); } this.Label1.Text = Session["UserName"].ToString(); } protected void btnAdd_Click(object sender, EventArgs e) { string ID; SqlConnection mycon = new SqlConnection(ConfigurationManager.AppSettings["conStr"]); mycon.Open(); DataSet mydataset = new DataSet(); SqlDataAdapter mydataadapter = new SqlDataAdapter("select * from tb_Blog where UserName='"+Session["UserName"]+"'", mycon); mydataadapter.Fill(mydataset, "tb_Blog"); DataRowView rowview = mydataset.Tables["tb_Blog"].DefaultView[0]; ID = rowview["BlogID"].ToString(); string com = "Insert into tb_Article(Subject,Author,Content,Time,BlogID) values('" + this.txtSubject.Text + "','" + Session["UserName"].ToString() + "','" + this.txtContent.Text + "','" + DateTime.Now.ToString() + "','" + ID + "')"; SqlData da = new SqlData(); bool add = da.ExceSQL(com); if (add) { Response.Write("<script language=javascript>alert('文章添加成功!');location='ArticleManage.aspx'</script>"); } else { Response.Write("<script language=javascript>alert('文章添加失败!');location='javascript:history.go(-1)'</script>"); } } protected void btnCancle_Click(object sender, EventArgs e) { Response.Redirect("ArticleManage.aspx"); } }
主页上的最近评论链接打不开 好象是和文章管理下的用的同一个模块LIFTCONSTORLS,但是主页和文章管理不在同一个目录下 所以用一个虚拟路径的配置无法达到. 不知道说清楚没有 望解答
请你把问题说清楚点?以便于给你解答!
