I am trying to add a dynamically extensible property to a composite control that I can remove on the surface of the constructor. I tried this with String Array, List and ArrayList. All with similar results. Iβm missing something, and I donβt know what. Here is what I consider the appropriate code:
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content),
NotifyParentProperty(true),
PersistenceMode(PersistenceMode.InnerProperty)]
public String[] AccessLevels
{
get
{
String[] s = (String[])ViewState["AccessLevels"];
return s;
}
set
{
ViewState["AccessLevels"] = value;
}
}
, . "" Visual Studio 2008 "+ AccessLevels" "String [] Array" elipsis [...]. elipsis, , . " " "AccessLevels", , , , . ! , , , HTML- .
<cc2:HBAdmin ID="HBAdmin1" runat="server">
<AccessLevels>
<system.string></system.string>
<system.string></system.string>
<system.string></system.string>
</AccessLevels>
</cc2:HBAdmin>
HBAdmin - , cc2 - . . ? intellisense <AccessLevels> , : " " AccessLevels ", < system.string > , " ", System.String ' . , ( , ), :
" "
. , , , , . , , .
, , , - - . , ?