开发者

programmatically change style on placeholder control

开发者 https://www.devze.com 2023-01-22 00:33 出处:网络
is there a way to programmatically set style on PlaceHolder con开发者_运维技巧trol? thanksThere is no direct setter for it however you can use Attributes parameter.

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

精彩评论

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