R
Rolf Welskes
Hello,
When developing Customcontrols which have other controls it seems be good
practice to inherent from CompositeControl.
But other as at WebControl I am not able to set the tag of the control. It's
allways span.
If you now build such a control - as also in an example from the msnd - with
for example a table in it you have the following:
<span> <table>.....</table></span> as generated html.
This is bad html because span is an inline-element and can only have
inline-elements - but - table is a block-element.
So this problem would not be there if you can set the tag you need for
example to div in the constructor of the control
as it is possible in WebControl.
So question : what is to do in this case.
Thank you for any help.
Rolf Welskes
When developing Customcontrols which have other controls it seems be good
practice to inherent from CompositeControl.
But other as at WebControl I am not able to set the tag of the control. It's
allways span.
If you now build such a control - as also in an example from the msnd - with
for example a table in it you have the following:
<span> <table>.....</table></span> as generated html.
This is bad html because span is an inline-element and can only have
inline-elements - but - table is a block-element.
So this problem would not be there if you can set the tag you need for
example to div in the constructor of the control
as it is possible in WebControl.
So question : what is to do in this case.
Thank you for any help.
Rolf Welskes