UserControl's Event Handler not firing

后端 未结 4 1844
攒了一身酷
攒了一身酷 2021-01-05 15:23

I dynamically load a UserControl into a View that\'s in a MultiView control. Although the UserControl adds an event handler, the event never fires.

What am I missin

4条回答
  •  走了就别回头了
    2021-01-05 16:10

    The control must be visible initially to be able to enter in OnPreRender event. but maybe you want it to be unvisible. the be sure to have EnableViewState = false;

提交回复
热议问题