I want to have two ReportViewer controls in my VS project. I have two completely different types of reports and I want to split them between two RepportViewers that would be processed in two ReportViewer.aspx.cs. I have create copies of three files:
ReportViewer1.aspx
ReportViewer1.aspx.cs
ReportViewer1.aspx.designer.cs
in ReportViewer1.aspx.designer.cs I changed this line:
protected global::Microsoft.Reporting.WebForms.ReportViewer ReportViewer2;
In ReportViewer1.aspx.cs I name dthe class like this:
public partial class ReportViewer1
Inside of this class I changed all ReportViewer1 to ReportViewer2.
I also modified ReportViewer1.aspx.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReportViewer1.aspx.cs" Inherits="PrismWeb.reports.ReportViewer1" EnableEventValidation="false" %>
rsweb:ReportViewer1 ID="ReportViewer2" runat="server" Height="100%" Width="100%">
Call from UI:
/reports/ReportViewer1.aspx crashes somewhere on the server, cannot fine where.
However, if I call /reports/ReportViewer.aspx with same changes I did in ReportViewer1.aspx then it works fine. I just can't figure out why calling ReportViewer1.asx is not working.
Please note, I am not a c# developer, I might be doing something abviously wrong. Please help.
Thanks
ReportViewer1.aspx
ReportViewer1.aspx.cs
ReportViewer1.aspx.designer.cs
in ReportViewer1.aspx.designer.cs I changed this line:
protected global::Microsoft.Reporting.WebForms.ReportViewer ReportViewer2;
In ReportViewer1.aspx.cs I name dthe class like this:
public partial class ReportViewer1
Inside of this class I changed all ReportViewer1 to ReportViewer2.
I also modified ReportViewer1.aspx.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReportViewer1.aspx.cs" Inherits="PrismWeb.reports.ReportViewer1" EnableEventValidation="false" %>
rsweb:ReportViewer1 ID="ReportViewer2" runat="server" Height="100%" Width="100%">
Call from UI:
/reports/ReportViewer1.aspx crashes somewhere on the server, cannot fine where.
However, if I call /reports/ReportViewer.aspx with same changes I did in ReportViewer1.aspx then it works fine. I just can't figure out why calling ReportViewer1.asx is not working.
Please note, I am not a c# developer, I might be doing something abviously wrong. Please help.
Thanks