D
DalePres
I have a custom web control that basically consists of a dynamically created
table and HTML checkboxes. I spent hours typing things like:
writer.AddAttribute(HtmlTextWriterAttribute.SomeAttribute, "SomeValue");
writer.RenderBeginTag(Td);
writer.Write("Some stuff");
writer.RenderEndTag();
My question is, is there a reason for typing all that? Is there an
advantage to creating the control that way over just using:
writer.Write("<TD SomeAttribute="SomeValue">Some stuff</TD>");
Thanks,
Dale
table and HTML checkboxes. I spent hours typing things like:
writer.AddAttribute(HtmlTextWriterAttribute.SomeAttribute, "SomeValue");
writer.RenderBeginTag(Td);
writer.Write("Some stuff");
writer.RenderEndTag();
My question is, is there a reason for typing all that? Is there an
advantage to creating the control that way over just using:
writer.Write("<TD SomeAttribute="SomeValue">Some stuff</TD>");
Thanks,
Dale