Problem POSTING a SharePoint form multiple times

By , December 6, 2010 11:59 am

I created a web part that displays data in an HTML table. On this web part, there is also a button that says, Export to Excel. When the button is clicked, the form posts to the server and my server-side code responds with an Excel file. The problem is that it only works once. To get it to work again, I have to refresh my page. Is SharePoint preventing me from posting more than once?

I wrote this same functionality using the jQuery library SPServices along with jQuery to create the table. I then use jQuery to post the form to a custom handler that returns an Excel file. Same problem. The form will only POST once.

Any ideas?

Leave a Reply

Panorama Theme by Themocracy