MVC5中的[AllowHtml] [英] [AllowHtml] in MVC5
本文介绍了MVC5中的[AllowHtml]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在MVC5中有一个Web应用程序。
I have a web application in MVC5.
我想在某些属性中使用[AllowHtml]注释模型。
I want to use [AllowHtml] annotation in some properties of a model.
我想通过javascript / jquery或html属性动态应用注释。
I want to apply the annotation dynamically through javascript/jquery or html attributes.
我们如何实现这一目标?
How can we achieve that?
推荐答案
请参阅以下asp.net MVC论坛以获得更好的帮助:
Please refer to the below asp.net MVC forum for a better assistance:
http://forums.asp.net/1146.aspx
这篇关于MVC5中的[AllowHtml]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文