protected void Page_Load(object sender, EventArgs e) { string ageInDays = Request.QueryString["age"] as string; if (ageInDays == null) ageInDays = "45"; Response.Clear(); Response.AppendHeader("Content-Type", "application/vnd.ms-excel"); Response.AppendHeader("Content-Disposition", "attachment; filename=ItemsPendingApproval.xls"); BHLImportWebService.BHLImportWS ws = new MOBOT.BHL.Web.BHLImportWebService.BHLImportWS(); gvPendingApproval.DataSource = ws.IAItemSelectPendingApproval(Convert.ToInt32(ageInDays)); gvPendingApproval.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { string ageInDays = Request.QueryString["age"] as string; if (ageInDays == null) { ageInDays = "45"; } Response.Clear(); Response.AppendHeader("Content-Type", "application/vnd.ms-excel"); Response.AppendHeader("Content-Disposition", "attachment; filename=ItemsPendingApproval.xls"); BHLImportWebService.BHLImportWS ws = new MOBOT.BHL.Web.BHLImportWebService.BHLImportWS(); gvPendingApproval.DataSource = ws.IAItemSelectPendingApproval(Convert.ToInt32(ageInDays)); gvPendingApproval.DataBind(); }