none
Reportviewer control parameter RRS feed

  • Question

  • hi all,
    I have a aspx page with one textbox for empid and start date and end date. A report viewer control is on the same page. On passing the relevant details a report will be generated and display.

    But as the page load the report viewer throws an exception that empid is not specified.

    I Know that the report viewer is expecting the value during page load. But I want to pass the parameter on the click of button.

    What is the solution for the problem
    Thursday, September 3, 2009 6:04 AM

All replies

  • On the PageLoad event, do not render the report. If you have it, you can comment out the line of code that is like this.

    this.reportViewer1.RefreshReport();

     

     


    On the button click, set the parameters, then render the report.


    Brad Syputa, Microsoft Reporting Services This posting is provided "AS IS" with no warranties.
    Thursday, September 3, 2009 5:18 PM