Embedding "customcontrol" inside "webusercontrol"

A

Angrez Singh

Hi,

I am trying to use a "customcontrol" inside a "webusercontrol" but
facing problem with the viewstate of the "customcontrol".

When I use the "customcontrol" on a page either adding it statically or
dynamically, it works fine. There is no problem with the ViewState.
Also when I use this "customcontrol" inside another "customcontrol"
there is no problem with the ViewState.

Problem arises only when I embed this "customcontrol" inside a
"webusercontrol". While debugging I found that the
"createcustomcontrols" function is not being called on postback in this
scenario. In all others scenarios this function is called.

Am I doing something wrong here or is it not possible to use custom
control in that way?

Any pointers or suggestions will be appreciated.

Thanks & Regards,
Angrez
 

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,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top