Collection Not Saving Child Control Into Viewstate

C

Chris A.

All,

I have a custom webcontrol (A) that exposes a custom collection
(implementing CollectionBase) of type custom webcontrol (B).

Webcontrol A
|___Collection of Type WebControl B
|___WebControl B

I have written a custom typeconverter for both the collection and webcontrol
B. The typeconverter for the collection can successfully ConvertTo and
ConvertFrom Viewstate. But I lose the click eventhandler in webcontrol B even
though the top webcontrol A generates a postback on the server. How can I (1)
sink the click event for webcontrol B and (2) bubble that up into the
collection so that I can generate an event for webcontrol A to consume?

Thanks.
 

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
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top