Hi all,
I'm building a web control that creates its styles on the fly during PreRender. This works fine as long as I'm using the Style class as below:
The style gets neatly rendered into the <head> section. The problems occur as soon as I choose one of the derived classes such as TableStyle. The resulting style definition appears to only contain properties that are defined in the base class Style, e.g. Height and Width. Properties like CellPadding, however, are completely ignored.
Has anyone has ever come across this?
Thanks,
Volker
I'm building a web control that creates its styles on the fly during PreRender. This works fine as long as I'm using the Style class as below:
Code:
Style style = new Style();
style.BorderColor = System.Drawing.Color.Black;
style.BorderStyle = BorderStyle.Solid;
...
this.Page.Header.StyleSheet.CreateStyleRule( style, null, "myclass" );
The style gets neatly rendered into the <head> section. The problems occur as soon as I choose one of the derived classes such as TableStyle. The resulting style definition appears to only contain properties that are defined in the base class Style, e.g. Height and Width. Properties like CellPadding, however, are completely ignored.
Has anyone has ever come across this?
Thanks,
Volker