博客源码 主要功能: 全部文章,用户博客管理,发表文章,发表评论,文章管理,浏览博客 主要代码: Article article = new Article(); article.Title = this.txtTitle.Text.ToString(); article.Contents = this.ftbContent.Text.ToString(); article.Author = user; article.Clicks = 0; article.PubDate = DateTime.Now; if (ArticleManage r.AddArticle(article) != null) { Response.Redirect("~/refresh.aspx?msg=" + "恭喜你,发表成功!"); } else { this.lblMsg.Text = "很遗憾,发表失败,请重新尝试!"; } r.AddArticle(article) != null) { Response.Redirect("~/refresh.aspx?msg=" + "恭喜你,发表成功!"); } else { this.lblMsg.Text = "很遗憾,发表失败,请重新尝试!"; }