protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //显示文章 Article art = new Article(); string aids = Request.QueryString["aid"].ToString(); int aid = Convert.ToInt32(aids);//文章id art = ArticleManager.GetArticleById(aid); Title.Text = art.NTitle; Author.Text = "作者: " + art.Author.Name + " 发表时间: " + art.NDate; Content.Text = art.NContent; //显示评论 cm = new List <comments>(); cm = CommentsManager.GetCommentByAid(aid); } }