Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Suppress HTML Validation Error in Visual Studio

I have a custom attribute that I use in various elements in my ASP.NET HTML markup. Obviously it violates the DTD, and I get a validation error from Visual Studio. I hate ignoring errors in the error output window. Is there a way to suppress this error message? For example:

<label id="MyId" cid="MyCID" runat="server" />

cid is a custom attribute I use for various purposes, and it produces a validation error:

Validation (XHTML 1.0 Transitional): Attribute 'cid' is not a valid attribute of element label
like image 548
JessicaB Avatar asked Sep 19 '10 15:09

JessicaB


1 Answers

Goto Tools > Options > Text Editor > Html > Validation and turn it off. Simples.

like image 89
Jaimal Chohan Avatar answered Nov 10 '22 08:11

Jaimal Chohan