0
Answer

Loading User controls Dynamically

Ask a question
Sundar

Sundar

16y
2.1k
1
Hi All,

I am loading an ChildUsercontrol dynamically in to another ParentUsercontrol. This loading part i am able to do, but i am not able to raise the button click event that is present in the ChildUserControl. Logically thinking when the page is posted back the dynamically loaded control is lost. To store the orginal state i tried using viewstate but this is not working. I have attached the error msg that i got when tried using viewsate.

Microsoft Internet Explorer
---------------------------
Error serializing value 'ASP.systemrequest_ascx' of type 'ASP.systemrequest_ascx.'
---------------------------

Can anyone help me in resolving this problem,

thnx
sundar