在asp.net mvc3.0中[ValidateInput(false)]特性失效了,只須要在網站根目錄中的web.config中作以下配置便可:web
<system.web> <httpRuntime requestValidationMode="2.0"/> </system.web>