摘要: 其实A potentially dangerous Request.QueryString value was detected from the client错误原因是mvc检测了您的请求,如果有‘’等字符串,就会有这个错误。解决办法在action前加 [AcceptVerbs(HttpVerbs.Post),ValidateInput(false)] public ActionResult New(string xmlContent) { … 但是如果你在action中 return View(); 还是会出现这个错误,除非 return RedirectToAction("Result"); 转到另一个action 解决方法1: 1.利用jquery的decodeURI和encodeURI方法编码字符串。 阅读全文
posted @ 2009-05-11 10:31 柯南 阅读(3060) 评论(10) 推荐(0) 编辑