Why is ValidateInput(False) not working?

前端 未结 7 2385
无人共我
无人共我 2020-11-29 02:21

I am converting an application I created using webforms to the asp.net mvc framework using vb.net. I have a problem with one of my views. I get the yellow screen of death sa

7条回答
  •  离开以前
    2020-11-29 02:49

    Add the following line of code:

    GlobalFilters.Filters.Add(new ValidateInputAttribute(false));
    

    to the Application_Start() method.

提交回复
热议问题