javascript - SaveFileDialog disables webpart buttons in Sharepoint using C# -
i have button opens savefiledialog save downloaded file clients pc.
after save file, or press cancel, buttons on web-part becomes unresponsive.
why happen, , how can fix it?
code webpart (i tried javascript aswell, no success, still same problem)
datatable table = populatedatatable(selectquery); system.web.httpresponse response = system.web.httpcontext.current.response; response.clearcontent(); response.clear(); response.contenttype = "text/plain"; response.appendheader("content-disposition", "attachment;filename=ethicsfeedexport " + datetime.now.tostring("yyyy-mm-dd") + "s.cv"); stringbuilder sb = new stringbuilder(); \\populate sb response.write(sb.tostring()); response.flush(); response.end();
ruan,
i had issues similar experiencing. reason sharepoint doesn't allow multiple postbacks. take @ link stackoverflow question no controls postback after using export csv method .
hope helps.
Comments
Post a Comment