Accordion Control - Accordion Pane not visible on PostBack
I am dynamically 开发者_高级运维adding Accordian Panes to an Ajax Accordion. On PostBack i cannot access the dynamically created Accordian Panes and ACC.Panes.Count=0
You should redraw the accordion on the Page_Init event on each post back in order to be able to access them after the post back.
All dynamic-generated controls are lost on postback, that's why you must re-define them in your page's Init event, then they will be available always.
精彩评论