protected void Page_Load(object sender, EventArgs e) { type = Request.Params["type"]; if (type == "t") { Information.topic myTopic = new Information.topic(); thePost = myTopic.get(Convert.ToInt32(Request.Params["id"])); } else if (type == "g") { Information.group myGroup = new Information.group(); thePost = myGroup.topicGetById(Convert.ToInt32(Request.Params["id"])); } }