0
大家好我正在實施一個程序來下載電子郵件並將其保存到數據庫。我將內容綁定到webgrid和行單擊我打開一個視圖來顯示郵件內容。每件事情都可以正常工作,但是當我使用html標籤的內容時,我收到的網頁錯誤可能會有人幫助我。這是我的控制器MVC5網頁錯誤(500)
public JsonResult GetMessageDetails(string bodyContent)
{
ViewBag.bodyContent = bodyContent;
return Json(bodyContent, JsonRequestBehavior.AllowGet);
}
Thanks'Shyju''[ValidateInput(false)]'這個訣竅 – demouser