W
Will
I'm interested in people's views on combining standard html controls
and asp.net server controls.
I've seen some applications where server controls were only used where
server side processing and control were required, combining them with
standard html for the static part of the page. Others have constructed
the page using almost entirely server controls (for example, using
asp:Label controls for text that will not change).
Is there a consensus on best practice here? For myself, I err on the
side of using html controls as much as possible (without the runat
attribute) as there is more consistency to how they are rendered. and
are easier to control with CSS.
Thanks
and asp.net server controls.
I've seen some applications where server controls were only used where
server side processing and control were required, combining them with
standard html for the static part of the page. Others have constructed
the page using almost entirely server controls (for example, using
asp:Label controls for text that will not change).
Is there a consensus on best practice here? For myself, I err on the
side of using html controls as much as possible (without the runat
attribute) as there is more consistency to how they are rendered. and
are easier to control with CSS.
Thanks