protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
int articleId = int.Parse(Request.QueryString["articleId"]);
BindNewInfo(articleId);
}
}
/// <summary>
/// 经由过程articleId获取消息
/// </summary>
/// <param name="articleId"></param>
protected void BindNewInfo(int articleId)
{
Article art = null;
ArticleBLL artsystem = new ArticleBLL();
art = artsystem.GetNewInfo(articleId);
this.lblClassName.Text = art.Category.ClassName;
this.lblTitle.Text = art.Title;
this.lblDateTime.Text = art.DateTime.ToString().Substring(0, 10);
this.lblContent.Text = art.Content;
}