S
schrader.it
Hi,
after searching hours and hours the net, didn't find any answer, i
decided to ask the experts.
I try to skin some controls, added within codebehind to the
controlscollection of a panel.
The sample:
public partial class LayoutTest : System.Web.UI.Page
{
/// <summary>
///
/// </summary>
/// <param name="e"></param>
protected override void OnInit(EventArgs e)
{
Control c = new Control();
c.SkinID = "Default";
panel.Controls.Add(c);
}
}
The controls will show up within the panel, but without any skinning
and theming. If i put them on the page directly (within the panel),
everything works fine. Any suggestions?
Regards Stephan
after searching hours and hours the net, didn't find any answer, i
decided to ask the experts.
I try to skin some controls, added within codebehind to the
controlscollection of a panel.
The sample:
public partial class LayoutTest : System.Web.UI.Page
{
/// <summary>
///
/// </summary>
/// <param name="e"></param>
protected override void OnInit(EventArgs e)
{
Control c = new Control();
c.SkinID = "Default";
panel.Controls.Add(c);
}
}
The controls will show up within the panel, but without any skinning
and theming. If i put them on the page directly (within the panel),
everything works fine. Any suggestions?
Regards Stephan