日期:2014-05-20  浏览次数:20773 次

修改、增加文章的问题
HTML code
访问路径:/adminbeh/Manager/Module/CMh/BatchManage/ArticleManage/Default.aspx?CMD=Edit&ID=20110721015420ZJmREPdI8ZZBqlltL91xeMcRn49NStHHUFOa<br>System.Web thrown System.Web.HttpRequestValidationException<br />A potentially dangerous Request.Form value was detected from the client (ctl00$PageBody$content1="<p>3333</p><br /><p>44</...").<br /> at System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection)<br /> at System.Web.HttpRequest.ValidateNameValueCollection(NameValueCollection nvc, RequestValidationSource requestCollection)<br /> at System.Web.HttpRequest.get_Form()<br /> at System.Web.HttpRequest.get_HasForm()<br /> at System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)<br /> at System.Web.UI.Page.DeterminePostBackMode()<br /> at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)<br /> at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)<br /> at System.Web.UI.Page.ProcessRequest()<br /> at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)<br /> at System.Web.UI.Page.ProcessRequest(HttpContext context)<br /> at ASP.adminbeh_manager_module_cmh_batchmanage_articlemanage_default_aspx.ProcessRequest(HttpContext context)<br /> at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()<br /> at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

我已经用了HttpUtility.HtmlEncode(content1.Value)转换,怎么还是错,只要有换行,就不能修改和插入,没换行或者<p>之类的就可以

------解决方案--------------------
关注中
------解决方案--------------------
学习了。