Facebox popup + asp.net button postback issue
i have a aspx page which i am loading using facebox. In the form i have a button which submits the form.on clicking the button the facebox closes and browser shows the same form which was opened in facebok.
I used asp.net update panel to avoid full postback in popup, but using update panel not showing the facebox popup.
how can i make the facebox popup windows stayed there as it was before postback.开发者_运维知识库
How is the facebox code being bound to the button? Now that the button is wrapped in an update panel, you may have to wait until after the update panel loads to bind.
You can put your js code in this event, and it will run each time an update panel ajax call finishes.
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(bindButton())
精彩评论