I've got a webusercontrol that has an an UpdatePanel. I'm exposing it's triggers property as below:I've tried declaring this with only the Browsable(true) attribute also.Code:[MergableProperty(false), Editor(typeof(System.Web.UI.Design.UpdatePanelTriggerCollectionEditor), typeof(UITypeEditor)), PersistenceMode(PersistenceMode.InnerProperty), Category("Behavior")] public UpdatePanelTriggerCollection Triggers { get { return UPDisplay.Triggers; } }
If i try it with just the Browsable attribute then when the triggers collection editor comes up it doesn't let me choose to add an AsyncPostbackTrigger, or a full postback trigger, it just tries to create the abstract base class - so it errors.
When i try declaring it as above i get an error "Value cannot be null, parameter name: component" when trying to open the editor.
I can manually add triggers in the markup, but i'd like editor support if possible. Any help would be much appreciated.





Reply With Quote