title: Suppress Compiler Warning in ASP.NET / VB.NET
body: <p>The ASP.NET compiler tells me a certain tag does not accept a certain attribute, although it builds, and it renders correctly on the browser. It's a <i>dull</i> warning message.</p>
  
  <p>How can I disable that warning message in certain lines of the ASP.NET code?</p>
  
  <p>The warning pops at this line:</p>
  
  <pre><code>&lt;asp:ListItem Text="" Value="" style="display: none" /&gt;
  </code></pre>
  
  <p>Warning:</p>
  
  <p><code>Validation (ASP.Net): Attribute 'style' is not a valid attribute of element 'ListItem'.</code></p>
  
  <p>PS: I just want to disable that warning message for that specified line of code, I don't want to disable it for the whole project. Is there a way to do this?</p>