View Full Version : [CLOSED] Recreating Dynamic Controls within a IDynamicUserControl

Jun 16, 2014, 4:07 PM
I'm using a UserControl that implements Ext.Net.IDynamicUserControl in conjunction with a TabPanel and letting the tab load the UserControl using a DirectMethod. On the UserControl, I'm building UI using dynamic controls.

The BeforeRender method works great the first time to create the dynamic controls.

But, I can't find a way to "re-build" the controls on a post-back because BeforeRender doesn't get fired again.

How can I use a method to "re-build" my dynamic user controls on a post-back?

Thank you.

Jun 16, 2014, 7:29 PM
Hi @chulcy,

If you render a user control in such a way, then that user control is not added to the page's controls and it is not recreated on each request. Ext.NET just renders a user control's content to a browser.

If you need the controls to be recreated, you should add the user control in a regular ASP.NET way.