Every time a user posts something containing <
or >
in a page in my web application, I get this exception thrown.
I don\'t want to go
There's a different solution to this error if you're using ASP.NET MVC:
C# sample:
[HttpPost, ValidateInput(false)]
public ActionResult Edit(FormCollection collection)
{
// ...
}
Visual Basic sample:
_
Function Edit(ByVal collection As FormCollection) As ActionResult
...
End Function