locked
View Report Event Report Viewer RRS feed

  • Question

  • I am using Report Viewer Control in my ASP.Net web application.I have cascading dropdown filter in my reports.

     

    To trap the View Reports Button in ReportViewer i use below code.

    Is there any other alternative way i could trap the view reports event of report.

     

    protected void Page_Load(object sender, EventArgs e)
            {
                if (Page.IsPostBack)
                {
                    try
                    {
                        if (Page.IsValid)
                        {
                            this.ReportViewer1.ShowReportBody = true;
                            this.ReportViewer1.ServerReport.Refresh();
                        }
                    }
                    catch(Exception eex)
                    {
                        Console.WriteLine("");
                    }
                }

      }
    Friday, March 28, 2008 2:59 AM