Asp.net, vb.net, C#.net Resources

Welcome to Asp.net, vb.net, C#.net Resources Sign in | Join | Help
in Search

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

Last post 08-28-2006, 12:25 AM by Webdeveloper. 1 replies.
Sort Posts: Previous Next
  •  08-21-2006, 8:25 AM 427

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

    Why doesn't my Collection Properties get saved in the aspx file properly during design-time?
  •  08-28-2006, 12:25 AM 895 in reply to 427

    Re: 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 colleciton property has the PersistenceMode attribute set to InnerProperty then the property should not include a set method.

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems