protected void Page_Load(object sender, EventArgs e) { LS Controller = new LS(); if (Session["PostID"] != null && Session["PostID"].ToString() != string.Empty) { Post post = Controller.FindThreadPostByMainPostReference(Convert.ToInt32(Session["PostID"].ToString()))[0]; Main.Controls.Add(CreateContent(post)); } }