S
Sergio
Simple webcontrol with property Buttons of type List<WebControl>.
When in design time i add new item into collection new added item gets
default id("TextBox1").Changing it causes not adding this item to List
! Why???
After adding item with default id and reopening collection editor is
possible change id property.
Any help ,please!
here sample code:
public class testControl : System.Web.UI.WebControls.WebControl
{
public testControl()
{
}
private List<WebControl> m_Buttons;
[
PersistenceMode(PersistenceMode.InnerProperty),
DesignerSerializationVisibility(DesignerSerializationVisibility.Content)
]
public List<WebControl> Buttons
{
get
{
if (m_Buttons == null)
m_Buttons = new List<WebControl>();
return m_Buttons;
}
}
}
When in design time i add new item into collection new added item gets
default id("TextBox1").Changing it causes not adding this item to List
! Why???
After adding item with default id and reopening collection editor is
possible change id property.
Any help ,please!
here sample code:
public class testControl : System.Web.UI.WebControls.WebControl
{
public testControl()
{
}
private List<WebControl> m_Buttons;
[
PersistenceMode(PersistenceMode.InnerProperty),
DesignerSerializationVisibility(DesignerSerializationVisibility.Content)
]
public List<WebControl> Buttons
{
get
{
if (m_Buttons == null)
m_Buttons = new List<WebControl>();
return m_Buttons;
}
}
}