public ActionResult Reply() { int ModelID = 0; int PubID = 0; string PubTable = ""; int PubCID = 0; string PubInputer = ""; string title = ""; string pid = Request["pubid"] ?? ""; string id = Request["id"] ?? ""; if (!string.IsNullOrEmpty(pid) && !string.IsNullOrEmpty(id)) { M_Pub mp = pubBll.GetSelect(DataConverter.CLng(pid)); ModelID = mp.PubModelID; PubID = mp.Pubid; PubTable = mp.PubTableName; PubCID = DataConverter.CLng(id); DataTable dtpub = pubBll.GetPubModeById(PubCID, PubTable); if (dtpub != null && dtpub.Rows.Count > 0) { title = "回复 [" + dtpub.Rows[0]["PubUserName"] + " " + dtpub.Rows[0]["PubTitle"] + "]"; PubInputer = dtpub.Rows[0]["PubInputer"].ToString(); } } TempData["ModelID"] = ModelID; TempData["PubID"] = PubID; TempData["PubTable"] = PubTable; TempData["PubCID"] = PubCID; TempData["PubInputer"] = PubInputer; ViewBag.title = title; return(View()); }