I write many custom controls and think that the HtmlTextWriter would benefit
from a method such as:
writer.Write("<td>{0}<td>", new HtmlTextWriterCallback(this.WriteCell))
void WriteCell(HtmlTextWriter writer)
{
writer.Write("Some Content");
}
This is a simple example but for html templating of a site this would be
very efficient, useful and cool.
Thanks,
Mike
Brock Allen - 27 Jul 2005 19:35 GMT
There already is:
Control.SetRenderMethodDelegate
This is how ASP.NET renders controls that have nested code blocks:
<asp:Label><% Response.Write("fooey"); %></asp:Label>
-Brock
DevelopMentor
http://staff.develop.com/ballen
> I write many custom controls and think that the HtmlTextWriter would
> benefit from a method such as:
[quoted text clipped - 12 lines]
>
> Mike