对客户端提交内容不校验

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

posted on 2015-03-17 22:58  木屐  阅读(96)  评论(0编辑  收藏  举报

导航