How to persist a dynamic control (c#)
问题 As per the title, I have created a custom control. On a certain button click event, this control is instantiated, then added to the page. It is a dynamic control, with it's own button events. In order for these button events to be triggered, the control must be drawn by the end of Page_Load / OnLoad , in the subsequent page_load / onload lifecycle stage. My problem is how do I persist this control? I cant store it in the Session object because it contains non-serializable items. 回答1: You