How to selectively suppress markup validation in Visual Studio?
问题 Sometimes I find it useful to be able to suppress certain markup validation warnings within files that contain HTML (ASPX, etc.). Is there an equivalent of #pragma warning disable\restore for HTML? 回答1: There are similar questions around, see this and that. Unfortunately there is no solution to do it selectively. Only a global turn-off of the validation will hide those warnings. 来源: https://stackoverflow.com/questions/8838665/how-to-selectively-suppress-markup-validation-in-visual-studio