在.aspx文件头中加入这句<%@ Page validateRequest="false" %>
修改web.config文件,
<configuration> <system.web> <pages validateRequest="false" />
<httpRuntime requestValidationMode="2.0" />
</system.web> </configuration>