Question

I am working on a Composite custom control.

In said control, I am inheriting from LinkButton. In this LinkButton, I am nesting a Label Control and 5 Image controls.

I am able to render everything properly, and I´ve got the btton doing its on click events and everything, however, there´s a slight problem:

Once the button has rendered, the nested controls appear above the linkbutton, so that the linkbutton is not clickable where these added controls are...

What I want to know, is there a way to place them behind the linkbutton or something? So that the button is still clickable?

Thanks in advance!

Was it helpful?

Solution

I would highly recommend inheriting from CompositeControl, as that is the base class meant for situations like this. Then you can render out the linkbutton at the point you want, and add it to the inner control collection.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top