Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > WebControl - CollectionEditor Problem. Changing id property of new added collection item causes not adding item to collection -

Reply
Thread Tools

WebControl - CollectionEditor Problem. Changing id property of new added collection item causes not adding item to collection -

 
 
Sergio
Guest
Posts: n/a
 
      05-29-2006
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(DesignerSerializat ionVisibility.Content)

]
public List<WebControl> Buttons
{
get
{
if (m_Buttons == null)
m_Buttons = new List<WebControl>();
return m_Buttons;
}

}

}

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding a WebControl to a WebControl Steven ASP .Net Web Controls 1 10-13-2008 09:37 PM
To show the value set to a property in the CollectionEditor Ismail E ASP .Net Building Controls 0 06-15-2006 12:23 PM
WebControl with non-WebControl property Peter Morris [Air Software Ltd] ASP .Net Web Controls 1 12-07-2004 12:25 PM
I am adding a new row to the datagrid dynamically but if i use the Count property of Item it is not showing the count of the new rows being added Praveen Balanagendra via .NET 247 ASP .Net 2 06-06-2004 07:16 AM
CollectionEditor is always "Object Collection Editor" Nathan Phelps ASP .Net Building Controls 1 05-08-2004 04:01 AM



Advertisments