Custom Control Inheritance

J

Jerry Camel

I'm trying to create a web control button that will change images when you
hover over it. So I created a Web Control project and modified the default
web control to inherit from WebControls.ImageButton..

But it renders as a textbox when I put it on a web form. I even added code
to make sure that the render and onPreRender events are falling back to
MyBase.
(The HTML in the end user browser doesn't have a type attribute in the
html... Shouldn't that come from the parent ImageButton control?)

How do you get a custom web control to inherit?

Thanks.

Jerry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top