A potentially dangerous Request.Form

前端 未结 8 1932
深忆病人
深忆病人 2021-01-08 00:32

Anyone know why I am getting the following error? I have debugging enabled.

Server Error in \'/\' Application.
---------------------------------------------         


        
8条回答
  •  孤街浪徒
    2021-01-08 01:24

    It's because you have HTML tags in your POST request. To allow it you need to Set ValidateRequest= false in your @Page directives. But remember this can expose your site for Cross Site Scripting Attacks.

提交回复
热议问题