AllowHtml attribute not working

后端 未结 4 756
粉色の甜心
粉色の甜心 2020-12-06 07:38

I have a model with this property:

     [AllowHtml]
     [DisplayName(\"Widget for Table\")]
     [StringLength(1000, ErrorMessage = \"Maximum chars 1000\")]         


        
4条回答
  •  余生分开走
    2020-12-06 08:21

    I get the same problem and i solve it with the help of this post.

    If you are on .net 4.0 make sure you add this in your web.config

    
    

    Inside the tags

提交回复
热议问题