protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string strBulletinID = Request.QueryString["id"]; BulletinBLL bulletinBLL = new BulletinBLL(); Bulletin bulletin = bulletinBLL.GetBulletin(int.Parse(strBulletinID)); ViewState["Title"] = bulletin.Title; ViewState["Author"] = bulletin.EmployeeName; ViewState["Content"] = bulletin.Content; ViewState["CreateTime"] = bulletin.CreateTime; } }