Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Building Controls (http://www.velocityreviews.com/forums/f59-asp-net-building-controls.html)
-   -   Adding to collection from controlDesigner only produces end tag for the collection. (http://www.velocityreviews.com/forums/t757846-adding-to-collection-from-controldesigner-only-produces-end-tag-for-the-collection.html)

Don 07-22-2005 09:31 PM

Adding to collection from controlDesigner only produces end tag for the collection.
 
I have a customDesigner that adds to a collection in my control. For
some reason on the closing tag is added to the HTML view.

My control is called queryBuilder and has a collection called
ColumnsList, which is of type ArrayList. For this example I'm just
adding button to the list instead of my custom colum control.

This is my code in the designer.
Dim pdc As PropertyDescriptorCollection
Dim pd As PropertyDescriptor

CType(Component, queryBuilder).columnsList.Add(New Button)

pdc = TypeDescriptor.GetProperties(GetType(queryBuilder) )
pd = pdc.Find("columnsList", True)

Me.RaiseComponentChanged(pd, "", New Button)

When this executes the button is added as well as the </COLUMNSLIST>
ending tag, but I do not get a start tag.

Thanks,
Don



All times are GMT. The time now is 07:33 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.