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
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