0

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>

Dmitriy Khaykin
  • 5,238
  • 1
  • 20
  • 32
Thomas927
  • 853
  • 1
  • 11
  • 19
  • How about replacing quotes after you render it to string? – ttaaoossuuuu Jan 24 '14 at 12:53
  • I suppose I could do that but at that point I mind as well use HtmlTextWriter.Write. I thought that maybe there was something built in that would do what I want that I didn't know about. – Thomas927 Jan 24 '14 at 13:14

0 Answers0