You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
928 B

  1. using System;
  2. using Swift.web.Library;
  3. namespace Swift.web
  4. {
  5. public partial class Swift : System.Web.UI.MasterPage
  6. {
  7. protected void Page_Load(object sender, EventArgs e)
  8. {
  9. Page.Header.DataBind();
  10. //Download();
  11. }
  12. //private void Download()
  13. //{
  14. // var mode = GetStatic.ReadQueryString("mode", "");
  15. // var reportName = GetStatic.ReadQueryString("reportName", "");
  16. // if (mode == "download")
  17. // {
  18. // string format = GetStatic.ReadQueryString("format", "xls");
  19. // Response.Clear();
  20. // Response.ClearContent();
  21. // Response.ClearHeaders();
  22. // Response.ContentType = "application/vnd.ms-excel";
  23. // Response.AddHeader("Content-Disposition", "inline; filename=" + reportName + "." + format);
  24. // }
  25. //}
  26. }
  27. }