开发者

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";
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜