title: How to add a web form page as a partial view in MVC application?
body: <p>I want to use the asp:chart control in multiple pages of an MVC application. My pages do have some other content as well. So I want to add an aspx web form page with chart control as a partial view.
  I know an html helper is available for chart. But, I don't want to use it as I already have a webform page with asp:chart control. I can just add it.</p>
  
  <p>I searched a lot on the web. I am getting blogs on how to add a webform page with master page in MVC application, but didn't get for web form as a partial view. Can some one give some idea or any link to follow.</p>
  
  <p>My aspx page with chart control</p>
  
  <pre><code>&lt;asp:Chart ID="chartMain" runat="server" Height="500px" Width="780px" BackGradientStyle="TopBottom" BackSecondaryColor="White"
              Palette="BrightPastel" BorderColor="Gray" BackColor="#f4f4f4" BorderlineDashStyle="Solid" BorderWidth="4" ImageType="Png"&gt;
              &lt;Legends&gt;
                  &lt;asp:Legend IsTextAutoFit="False" Name="Default" BackColor="Transparent" Font="Trebuchet MS, 8.25pt, style=Bold"&gt;&lt;/asp:Legend&gt;
              &lt;/Legends&gt;
              &lt;ChartAreas&gt;
              &lt;/ChartAreas&gt;
  &lt;/asp:Chart&gt;
  </code></pre>
  
  <p>&amp; In code behind I am initializing the asp:chart control properties.</p>
  
  <pre><code>public partial class AspNetchart : Page
  {
      protected void Page_Load(object Sender, EventArgs E)
      {
          try
          {
              DrawChart();
              return;
          }
          catch (Exception Ex)
          {  }
      }
  
      private void DrawChart()
      {
          try
          {
              // Set the data source
              chartMain.DataSource = ObjChartDetails.ChartDataSource;
  
              // Add series
              AddSeries();
  
              // Prepares chart area
              DrawChartArea();
          }
          catch (Exception Ex)
          {}
      }
  }
  </code></pre>
  
  <p>Now I have chart in this aspx page. I just want to render this aspx page as a partial view in my MVC application.</p>