I have a button that evantually will generate a report in .csv format. So, a typical way is by using Response.End after writing in the context. Works well, user click the button, open/save box pop up, report generated as expected. However, after the box is close, attempting to click the button again to generate the report does not work. The button just don’t fire any event anymore. Found a similar problem posted in french-industries.com. So, this issue is specifically related to pages hosted within SharePoint.
I found my solution after reading a related topic post by Marten about Ajax second postback not working in Sharepoint in UpdatePanel.