HtmlTextWriter AddAttribute No Quotes In Output

132 Views Asked by At

Currently when I use

HtmlTextWriter.AddAttribute(HtmlSomething.Class, "Attribute-I-Add")

I get the resulting output:

<tr class="Attibute-I-Add"></tr>

Is there a way to use AddAttribute (or something else) and not receive quotes in the output? I know I could use

HtmlTextWriter.Write("<tr class=Some-stuff></tr>")

... but I was trying to avoid that.

To be clear I am looking for the output <tr class=Attibute-I-Add></tr>

0

There are 0 best solutions below