0
我們有一個Web部件,我們在網格中顯示一些數據。我們正在將網格的基礎數據表導出到Excel中,並在點擊服務器端按鈕時顯示打開 - 保存 - 取消撥號框。數據表到Excel轉換會讓我的服務器端按鈕在SharePoint WebPart中無響應
以下是我們在點擊服務器端按鈕時執行的代碼。
this.Page.Response.Clear();
this.Page.Response.AppendHeader("Content-Disposition", "attachment; filename=MyTasks.xls");
this.Page.Response.ContentType = "application/ms-excel";
this.Page.Response.Write("...here goes my well formated html....");
this.Page.Response.End();
問題是,當我點擊在diaglouge中的取消,然後對話框打開/保存Excel消失,但都放在我的Web部件在服務器端的按鈕將無響應,對任何一個按鈕點擊他們的服務器端點擊事件不會被解僱!
有什麼想法?
謝謝。