DatPT
DatPT

Reputation: 1675

How to allow Visual Studio Validate {$Something} in html editor?

In Visual Studio HTML Editor (aspx webform / mvc) i have some code:

<tr id="${PropertyKey}">
  <td title="DataModeHtml">
     <input type="checkbox" ${DataModeHtml} value="${DataModeKey}"/>
  </td>
  <td title="PropertyCode">
    ${PropertyCode}
  </td>
</tr>

I use jTemplates to render ${DataModeHtml} to [checked='checked'] or [string.Empty]. All okie, but Visual Studio "Warning" in editor Error List: "Validation (XHTML 1.0 Transitional): Attribute 'DataModeHtml' is not a valid attribute of element 'input'."

How can we: setting in visual studio, create add-on or add something to xsd-xml IntelliSense VS to solving this?

Upvotes: 0

Views: 109

Answers (1)

Terry
Terry

Reputation: 14219

Need to declare custom tags in the Intellisense files.

See this article from MSDN and scroll down to IntelliSense for custom tags

Upvotes: 0

Related Questions