对客户端提交内容不校验

[ValidateInput(false)]
public ActionResult Comment()
{
string msg=Request.Form["txtComment"];
ViewData["msg"]=msg;
// return Content("ok");
return View();
}

原文地址:https://www.cnblogs.com/poli/p/4345816.html