S
sjur
Hi,
I'm in the start-phase of implementing an ASP.NET 2.0-application
which will output quite a lot of HTML to the client. The question now
is whether to use the built-in HtmlControls:
HtmlTable tab = new HtmlTable();
this.placeHolder.Controls.Add(tab);
or to manually output the HTML using this kind of syntax:
this.label.Text = "<table></table>";
One requirement of the application is to output valid XHTML 1.0
Transitional. Obviously using HtmlControls would help us write valid
XHTML but I fear this might also restrict our possibilities to output
what we need, and also require us to write much more code than needed.
If someone could please advice or recommend one method over the other
I would be most thankful.
Regards,
Sjur
I'm in the start-phase of implementing an ASP.NET 2.0-application
which will output quite a lot of HTML to the client. The question now
is whether to use the built-in HtmlControls:
HtmlTable tab = new HtmlTable();
this.placeHolder.Controls.Add(tab);
or to manually output the HTML using this kind of syntax:
this.label.Text = "<table></table>";
One requirement of the application is to output valid XHTML 1.0
Transitional. Obviously using HtmlControls would help us write valid
XHTML but I fear this might also restrict our possibilities to output
what we need, and also require us to write much more code than needed.
If someone could please advice or recommend one method over the other
I would be most thankful.
Regards,
Sjur