public JsonResult NewTest_FeedBackTab(int testid, string feedbacktab) { var common = new CommonService(); common.OnRenderPartialViewToString += (model) => { var result = String.Empty; try { ViewBag.Tab = feedbacktab; result = this.RenderPartialViewToString("P_FeedBackTab", model); } catch (Exception e) { throw e; } return result; }; common.NewTest_FeedBackTab(testid, feedbacktab); return Json(new { common.generatedHtml, common.success, common.message }); }