c# - Can Set RequestValidationMode="2.0" page level? -
Based on ASP.NET 4.0 I am developing a web application and am receiving some pages of potentially dangerous requests (containing some markup codes).
.
Instead of setting RequestValidationMode = "2.0" in web.config, can I set that property to only those few pages?
Answer somewhere hidden in MSDN, hope it helps you too .. better than ever Also do not try to do this
& lt; Location path = "test.aspx" & gt; & Lt; System.web & gt; & Lt; HttpRuntime requestValidationMode = "2.0" /> & Lt; /system.web> & Lt; / Location & gt; context
Comments
Post a Comment