利用jquery解决MVC下A potentially dangerous Request.QueryString value was detected from the client问题
2010-09-14 13:45:28 来源:WEB开发网核心提示: 2.form提交时进行编码如functionCheckForm(){result=jQuery.formValidator.pageIsValid();if(jQuery.formValidator.pageIsValid()){$("#xmlContent").val
2.form提交时进行编码
如
function CheckForm() {
result = jQuery.formValidator.pageIsValid();
if (jQuery.formValidator.pageIsValid()) {
$("#xmlContent").val(encodeURI($("#xmlContent").val()));
}
return result;
}
更多精彩
赞助商链接