We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Platform : ASP.NET
Category : Serialization

Why doesn't my Collection Properties get saved in the aspx file properly during design-time?

Some common mistakes that will cause the designer to choke while persisting collection properties are:

  • The corresponding collection type cannot have multiple (overloaded) indexers. You should always define a single indexer of the type "public SomeType this[object obj]{...}". Otherwise the changes will be persisted but the control will not load in the designer. You will see a "Ambiguous match found" error.
  • If the collection property has the PersistenceMode attribute set to InnerProperty then the property should not include a set method.
  • You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.