aspx 頁面出現 [HttpRequestValidationException (0x80004005):從客戶端(TextBox1=" 2.修改web.config文件: 3.要設置web.config中httpRuntime配置節中的 requestValidationMode特性設置為 r... ...
aspx 頁面出現 [HttpRequestValidationException (0x80004005):從客戶端(TextBox1="<?xml version="1.0" ...")中檢測到有潛在危險的Request.Form 值。 解決辦法: 1<%@ Page validateRequest="false" %> 2.修改web.config文件: <configuration> <system.web> <pages validateRequest="false" /> </system.web> </configuration> 3.要設置web.config中httpRuntime配置節中的 requestValidationMode特性設置為 requestValidationMode="2.0",要不設置了validaterequest="false"也會提示檢測到有潛在危險的Request.Form值的錯誤。 4 在web.config添加或補充如下節點內容 <system.web> <httpRuntime requestValidationMode="2.0" /> </system.web>