Click here to Skip to main content
15,905,782 members

Comments by Member 15709759 (Top 2 by date)

Member 15709759 6-May-24 2:05am View    
Hi,

I already made it, please check http://filemanager.mrrentaluae.com/allfiles.aspx
Member 15709759 14-Aug-23 4:24am View    
Thank you for the reply.

can you please go through the below code and it is the right way to task to a background thread or not?

protected void btn_report_Click(object sender, EventArgs e)
{
try
{
if (!string.IsNullOrEmpty(ViewState["ord_id"] as string))
{
int o_id = Convert.ToInt32(ViewState["ord_id"]);
bind_data_and_pdf(o_id);
}
}
catch (Exception)
{
throw;
}
}


public async Task bind_data_and_pdf(int ord_id)
{
await Task.Run(() =>
{
//here is my report generation code
});
}