Sundar

Sundar

  • NA
  • 3
  • 0

Loading User controls Dynamically

Jun 25 2008 7:33 AM
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