I have an ASP.NET page that has a user control .ascx page inside of it. The .ascx page has a report viewer and a button in it that when clicked displays a report on the report viewer. When I click the button that is actually inside of the .ascx control, the report displays just fine. However I have a separate button that is just on the .aspx page itself, and when this button is clicked I call the Button1_Click(sender, e) method of the .ascx which should display the report. However, I get an "Object reference not set to an instance of an object" error message on the first line of the code on the Button in the .ascx page. The first line tells the report viewer to reset.
Am I calling the method wrong? Or am I missing something?