programmatically change style on placeholder control
is there a way to programmatically set style on PlaceHolder con开发者_运维技巧trol?
thanks
There is no direct setter for it however you can use Attributes parameter.
Dim panel As Panel = New Panel()
panel.Attributes.Add("style", "display:block;")
A place holder will not render itself, just whatever has been placed in it.
If you want to render the container use Panel instead. Panels will render as divs.
panel.CssClass = "SomeClass";
精彩评论