How to add an Items property to a custom web control?
ASP.NET
2
Posts
2
Posters
8
Views
1
Watching
-
Hi ! I'm developing a custom web server control that contains a DropDownList. How can I add an Items property (ListItemCollection type) to my control? I actually want a property similar with DropDownList.Items property in order to populate the DropDownList control. Many thanks, Vasile
-
Hi ! I'm developing a custom web server control that contains a DropDownList. How can I add an Items property (ListItemCollection type) to my control? I actually want a property similar with DropDownList.Items property in order to populate the DropDownList control. Many thanks, Vasile
If you are creating a true composite control, then you can just have a public readonly Items property that points to the DDL's Items property.