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部件在服务器端的按钮将无响应,对任何一个按钮点击他们的服务器端点击事件不会被解雇!
有什么想法?
谢谢。