Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected void BtnRefresh_Click(object sender, EventArgs e)
- {
- //check object session
- LoginSessionData.IsValid();
- //Hide the display panel
- DisplayMessage.Visible = false;
- //add a try catch block here
- try
- {
- ReportViewer1.LocalReport.Refresh();
- }
- catch (Exception ex)
- {
- m_logger.Error(ex);
- }
- }
- ReportParameter p1 = new
- ReportParameter("ShowDescriptions", checkBox1.Checked.ToString());
- ReportParameter p2 = new
- ReportParameter("MyDate", DateTime.Now.ToString());
- ReportViewer1.LocalReport.SetParameters(new ReportParameter[] { p1, p2 });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement