tags:

views:

17

answers:

1

Hi,

is there a way to programmatically set style on PlaceHolder control?

thanks

A: 

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";
CRice
does it mean the placeholder control cannot have dynamic css style?
btw.. can you actually have 2 divs in place holder with one has text allign to left and the other one to right? been trying this but no luck
True, the placeholder can not have css. And yeah you should be able to put divs inside one
CRice