ASP.NET request validation causes: is there a list?

后端 未结 6 1725
小鲜肉
小鲜肉 2020-12-08 14:26

is anybody aware of a list of exactly what triggers ASP.NET\'s HttpRequestValidationException? [This is behind the common error: \"A potentially dangerous Request.Form value

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-08 15:12

    From MSDN:

    'The exception that is thrown when a potentially malicious input string is received from the client as part of the request data. '

    Many times this happens when JavaScript changes the values of a server side control in a way that causes the ViewState to not agree with the posted data.

提交回复
热议问题