DropdownList & Textbox

M

Martin Venter

Hi Everyone,



I want too write a custom control involving a DropDownList and a TextBox.

Basically I sometimes want to render a dropdownlist and sometimes a textbox
but never both at the same time.



The custom control needs to have all the properties and events of both
individual controls and handle autopostback and viewstate.



The question is from which control I should inherit from and what else I
need to do to make this work.



So far I've decided to inherit from dropdownlist until anyone tells me
better and I've added a DisplayMode property which can be DropDownList or
TextBox.



Any help would be appreciated.



Regards,

Martin
 

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

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top