When a chart is rendered using using an IFrame, two web pages are
used: one page that contains and renders the chart and another page that makes
reference to the page that creates the chart.
The page that creates the chart is a simple ASPX page with a chart control. There are no special rendering options set and code-behind may still be used. This page may also contain other ASP.NET controls to manipulate the chart.
The second page that makes reference can be any webpage, including HTML and ASP, and contains an IFrame tag with its SRC attribute set to the name of the first page. For example, <IFrame src= 'UsingWithIFrame.aspx' ... >.
This sample contains two web forms:
#1 - UsingWithIFrame.aspx - contains the Chart control.
#2 - UsingWithIFrame.htm - contains the IFrame tag.