Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have built a custom control for asp.net 2.0 in C# that derives from Composite Control. I have several public properties on this control, like Name, Title, etc. They are all exposed in the design time UI nice and neat and they get persisted to the html tag as attributes when the developer sets them.

 

My trouble is that i have one public prop that is an object and it is not being persisted at design time, it gets lost after being set.

The property is a Generic List of a class I created. This class is being recognized at design time because when the developer clicks on the prop in the prop list they get the ... and then it expands into a collection type prop collector. It's just that after they fill in the info it doesn't get saved.

 

I've messed with PersistChildren and ParseChildren to no avail. What do I need to do to get this property to persist?

 

Thanks for any suggestions.

Wanna-Be C# Superstar

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...