I\'m using asp.net MVC 4.
These are my routes:
routes.MapRoute(
name: \"Default\",
url: \"{controller}/{action}/{id}\"
In web.config:
<system.web>
<httpRuntime requestPathInvalidCharacters="" requestValidationMode="2.0" />
<pages validateRequest="false" />
</system.web>
Blatantly stolen from https://stackoverflow.com/a/6026291/299408
The answer did not work for me. I had to use:
[ValidateInput(false)]
public ActionResult Index...
Hope this helps others.