In this case you can't use User Control because C# does not support multiple implementation inheritance. A class cannot be derived from more than one class i.e your class can't inherit UserControl
classes at the same time. However, a class can be derived from multiple interfaces.
To extend SingleNews
control, you need to create a custom control that inherits SingleNews
class as in the sent example. After that, you could upload the control manually by modifying web.config
. To achieve this follow the instructions below:
1.Open the web.config
file and add the following in the <toolboxControls> section:
|<add name="Custom Control" section="Custom Controls" type="Namespace.ClassName, AssemblyName" /> |
2.Upload your assembly in the bin folder of your project.
In this way your control will be automatically inserted into the Toolbox.
Let us know how it goes.
the Telerik team