N
Nathan Sokalski
I want to create a custom control that has a style and id attribute, but not
all the extra stuff that a WebControl has. I would think I would inherit
from either the HtmlControl HtmlGenericControl class, but this does not seem
to be working. I have written lots of controls in the past by inheriting
from the Control and WebControl classes, so I have written custom control
before, and I have managed to make a working version of my control by
inheriting from the Control class, but I want to find a way to avoid all the
extra work to add the style and id attributes that I should be able to get
by inheriting from another class. Thanks.
all the extra stuff that a WebControl has. I would think I would inherit
from either the HtmlControl HtmlGenericControl class, but this does not seem
to be working. I have written lots of controls in the past by inheriting
from the Control and WebControl classes, so I have written custom control
before, and I have managed to make a working version of my control by
inheriting from the Control class, but I want to find a way to avoid all the
extra work to add the style and id attributes that I should be able to get
by inheriting from another class. Thanks.