Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Building Controls / September 2006

Tip: Looking for answers? Try searching our database.

Nested Collection property in a custom control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
apratimg@gmail.com - 27 Sep 2006 16:58 GMT
I have the extactly the same problem.. I am creating a control where a
collection property is exposed which has a nested collection object.

It looks something like this once i enter data through the default
editor (in the design view)..

<COL_A>
  <A1:COL_A_ITEM Name="Test" Index="1">
      <COL_B>
    <A1:COL_B_ITEM Visible="True"></A1:COL_B_ITEM>
    <A1:COL_B_ITEM Visible="True"></A1:COL_B_ITEM>
      </COL_B>
   </A1:COL_A_ITEM>
</COL_A>

I have implemented IStateManager. It works fine for other items i have
in this control. But for this property its no able to save this values
and gives me a blank control while rendering.

I have applied ParseChildren and PersistChildren.. Also
DesignerSerializationVisibility(DesignerSerializationVisibility.Content),
PersistenceMode(PersistenceMode.Attribute)

So i am totally clue less why it will not save as the serialization is
happeneing properly. Do i need to implement a typeconverter?

Thanks
Rahul
Gaurav Vaish (www.EduJiniOnline.com) - 30 Sep 2006 14:57 GMT
> in this control. But for this property its no able to save this values
> and gives me a blank control while rendering.

Do you mean in the ViewState?
Ensure that COL_A_ITEM saves the state of COL_B_ITEM's in the collection
when it saves its view-state.

Signature

Happy Hacking,
Gaurav Vaish | http://www.mastergaurav.com
http://www.edujinionline.com
http://articles.edujinionline.com/webservices
-------------------


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.