protected void ButtonDownload_Click(object sender, EventArgs e)
{
ShowErrorAlertMessage(false);
var webApiService = new WebApiService(TestUrl);
var outputRootFolder = Server.MapPath("~/App_Data/");
webApiService.GenerateReportFromApi(LabelTest.Text);
Response.Clear();
Response.ContentType = "application/pdf";
Response.AddHeader("content-disposition", $"filename={fileName}");
Response.TransmitFile(filePath);
Response.End();
}
Sachin SinghPosted May 23, 2022, 5:58 AM