load an aspx page having reportviewer in a div in another page

165
June 03, 2017, at 8:02 PM

Reportviewer aspx code is given below

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.Reporting.WebForms;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
public partial class PresentationLayer_Reports_ReportViewer : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
   {
      if (!IsPostBack)
    {
        ReportViewer.LocalReport.ReportPath = Server.MapPath("~/Reports/Details.rdlc");
        spGetDetails_Report dsCustomers1 = GetData("spGetDetails_Report");
        ReportDataSource datasource1 = new ReportDataSource("spGetDetails_Report", dsCustomers1.Tables[0]);
        ReportViewer.LocalReport.DataSources.Clear();
        ReportViewer.LocalReport.DataSources.Add(datasource1);
        ReportViewer.ShowPrintButton = true;
        ReportViewer.AsyncRendering = false;           
    }
}
public spGetDetails_Report GetData(string query)
{
    string conString = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
    SqlCommand cmd = new SqlCommand(query);
    using (SqlConnection con = new SqlConnection(conString))
    {
        using (SqlDataAdapter sda = new SqlDataAdapter())
        {               
            cmd.Connection = con;
            sda.SelectCommand = cmd;
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.Parameters.AddWithValue("CId", 1);
            cmd.Parameters.AddWithValue("PStartDate", "2010/10/01");
            cmd.Parameters.AddWithValue("PEndDate", "2011/05/05");
            cmd.Parameters.AddWithValue("SId", 0);

                using (spGetDetails_Report dsCustomers = new 
spGetDetails_Report())
            {
                sda.Fill(dsCustomers, "spGetDetails_Report");
                return dsCustomers;
            }
        }
    }
}

in another page I used the below to call the ReportViewer.aspx, but the viewer is loading no data showing and the toolbar is disabled also

jQuery("#ReportContainer").load(('ReportViewer.aspx'));

in another page I used the below to call the ReportViewer.aspx, but the viewer is loading no data showing and the toolbar is disabled also

READ ALSO
html css Loader need to complte Position

html css Loader need to complte Position

HI friend i have one page loader but the probelm is when load the content also than loader running don't display the loaded the content i want stop loading and load the page deatils and content

260
Where to place @Scripts.Render and @Styles.Render

Where to place @Scripts.Render and @Styles.Render

I am quite confused about where to place @ScriptsRender and @Styles

425
want to show selected divs after form submission also

want to show selected divs after form submission also

Bellow shown code does these things when i select Scholership Programs from select list the div element with class="mystaff_hide mystaff_opt1" will be shown and then i select Family Income now div with class="mystaff_hide mystaff_opt2" will be shownNow...

214