Web custom controls issue

E

Emanuele

Hi all,
i am developing a web custom control. Basically it's something like a
listbox, a bit enhanced. i have some problem when i have to add items to the
controls. this is the basic structure of the control:

CREATECHILDCONTROLS (method)
create the child controls of the component.
add the items inserted (if i don't add them here, i can't handle item
events)

RENDERCONTENTS
render the control and each item i have inserted.

---- IMPLEMENTATION IN A WEBFORM ---

the control is added in a Webform, and from a dorpdownlist the user can
choose which "set" of items explore. obviously, in the SELECTEDINDEXCHANGED
event of the dropdownlist i populate the custom control, but i can't see
anything.

i have found the problem: the items contained are not rendered because the
CREATECHILDCONTROLS is called before the SELECTEDINDEXCHANGED, thus i don't
have items added and created in the controls collection of the custom
control...

can anyone help me, please? i really don't know how to manage it...
 
T

Thomas Hansen

Hi all,
i am developing a web custom control. Basically it's something like a

Might be off topic, but you do realize that there's commercial and
open source solutions available for mostly everything you
could possibly imagine in a "drop down list"...??
Oe of them is http://ajaxwidgets.com which has an AutoCompleter
control, fully ajax enabled...

..t
 

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,982
Messages
2,570,189
Members
46,734
Latest member
manin

Latest Threads

Top