I have this line in the controller:
Response.Redirect("~/WebForms/ReportViewer.aspx");
Then this simple test code in Page_Load in ReportViewer.aspx:
protected void Page_Load(object sender, EventArgs e) { Response.Write("Hello"); return; }
This code is not even executed, i.e. Page_Load not running. I suppose there is something that I have to do before redirecting to a web form, but I have no idea what it is. I saw a complete sample of code that just calls Redirect .
My web form has a Crystal Reports report viewer that may have something to do with the situation:
<body> <form id="form" runat="server"> <CR:CrystalReportViewer ID="CrystalViewer" runat="server" AutoDataBind="true" /> </form> </body>
source share