简体   繁体   中英

How can you turn off request validation in IIS Express?

I have always been able to turn off request validation on IIS and cassini when I need to post HTML from an HTML Editor. Problem is I can't seem to do so on IIS express. Have tried the following:

<%@ Page Language="C#" ValidateRequest="false"

<system.web>
<pages  validateRequest="false">

Any ideas?

Thanks.

Maybe you could try to change the web.config like this:

<system.web>
 <httpRuntime requestValidationMode="2.0" />
</system.web>

(more info here: http://www.asp.net/learn/whitepapers/aspnet4/breaking-changes )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM