I am trying to create my own control that inherits from DropDownList.
I need to add a new property to the ListItem (in the item collection).
<cc1:MyDropDownList ID="MyDropDownList1" runat="server"> <asp:ListItem myProperty="true" text="sometext" ... /> </cc1: MyDropDownList>
How can i do this?
Even if you inherit DropDownList, you cannot add this property because you have to add it to the ListItem control.But the problem is that the ListItem class is sealed, so you cannot inherit it.
Can you extend the capabilities of the client side with jQuery?
Source: https://habr.com/ru/post/1763553/More articles:Javascript Book for free download - javascriptRecursive pattern? - c ++Can you use underscores in table names as part of the Kohana PHP framework (and how)? - phpMulti-valued dropdown list - c #How can we extract the actual font family from CompositeFontFamily applied to a run in WPF RichTextBox - fontsC ++ "undefined reference to 'Foo :: Foo (std :: string)'" - c ++How to set HTTP header for JSON message from django-piston handler? - djangohttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1763556/paperclip-to-upload-images-to-s3-in-rails-the-files-upload-at-a-very-slow-rate-a-work-around&usg=ALkJrhjtjexloMfW73i_efBVIOGlmMJAJQhow to check the uniqueness (not duplication) of a message in an rss feed - c #How to shift specific cells using Apache POI? - javaAll Articles