Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     tid=Convert .ToInt32( Request.Params["tid"]);
     pid = Convert.ToInt32(Request.Params["pid"]);
     Information.group myGroup = new Information.group();
     thePost = myGroup.topicGetById(tid);
 }
Esempio n. 2
0
 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"]));
     }
 }