将自定义标签添加到Visual Studio验证 [英] Add Custom Tag to Visual Studio Validation

查看:95
本文介绍了将自定义标签添加到Visual Studio验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何为Visual Studio(2005及更高版本)添加规则,以验证供应商专有控件的属性标记(HTML)?

How can I add rules to Visual Studio (2005 and up) for validating property markup (HTML) for a vendor's proprietary controls?

我的客户使用一个控件,该控件要求将多个属性设置为aspx文件中的标记,该属性在每次构建时都会产生类似215的验证错误.这并不能阻止我进行构建,但是真正的错误正逐渐消失在噪音中.

My client uses a control which requires several properties to be set as tags in the aspx file which generates something like 215 validation errors on each build. It's not preventing me from building, but real errors are getting lost in the noise.

推荐答案

右键单击HTML/ASP页面的源"视图,然后选择格式和验证".

Right-click on the Source view of an HTML / ASP page and select "Formatting and Validation".

  1. 点击标签特定选项".
  2. 展开客户端HTML标签",然后选择标题.
  3. 点击新标签...".
  4. 然后填写它!

我希望我也可以添加自定义CSS值.

I wish that I could add custom CSS values as well.

这篇关于将自定义标签添加到Visual Studio验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆