H
Henri
Hi,
I'm trying to design a custom LinkButton.
It inherits LinkButton as I need the implementation of the Click event (and
I don't know how to rewrite it).
I have to use AddAttributesToRender to render all the style attributes and
properties.
But as I want to specifie my own href attribute, I can't use LinkButton's
default AddAttributesToRender as it automatically adds its own href
attribute.
It would be great if I could call only WebControl's AddAttributesToRender
(LinkButton's parent class) but it doesn't seem possible to call it from my
class as it inherits LinkButton.
So do I need to rewrite completely WebControl's AddAttributesToRender
implementation to get rid of the href attribute added by LinkButton?
Do you have any solution?
Thanks
Henri
I'm trying to design a custom LinkButton.
It inherits LinkButton as I need the implementation of the Click event (and
I don't know how to rewrite it).
I have to use AddAttributesToRender to render all the style attributes and
properties.
But as I want to specifie my own href attribute, I can't use LinkButton's
default AddAttributesToRender as it automatically adds its own href
attribute.
It would be great if I could call only WebControl's AddAttributesToRender
(LinkButton's parent class) but it doesn't seem possible to call it from my
class as it inherits LinkButton.
So do I need to rewrite completely WebControl's AddAttributesToRender
implementation to get rid of the href attribute added by LinkButton?
Do you have any solution?
Thanks
Henri