Click here to Skip to main content
15,896,726 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How do i disable cross site validation in .net 4.0 ?

When i enter values like br> in my text box, code by default checking it and thrwing error.
How can i disable this?
Posted

1 solution

check the documentation
Request Validation in ASP.NET[^]
you need to set requestValidationMode and pages validateRequest properties of web config.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900