UpdatePanel下使用(Accordion/AccordionPane)<--AJAX開合
在AccordionPane下的Button無法WorkAnswer:
在Page_Load中加入:
ScriptManager.GetCurrent(Me.Page).RegisterPostBackControl(but_fileUpload_Img)
如果是在MasterPage下請改用:
ScriptManager.GetCurrent(Me.Master.Page).RegisterPostBackControl(but_fileUpload_Img)
參考:http://stackoverflow.com/questions/27815108/button-not-firing-inside-accordion-panes-inside-which-is-inside-update-panel-in
沒有留言:
張貼留言