Asp.net: Multiple iFrame in page
<p>I have multiple iframe in my asp.net page. But all this iframe are loading through loop and having same page in all.
These all iframes are loading at last, after loop completes and because of these i am getting last loop data in all iframes.</p>

<p>What to do for this.</p>

<p>This is my main page code where Iframe created in loop:</p>

<pre><code> for (int iCount = 0; iCount &lt; rcChartSubject.Items.Count; iCount++)
    {
SetChart();
    if (iCount.Equals(1))
                {
                    divRadarChart1.InnerHtml = "";
                    divRadarChart1.InnerHtml = "&lt;iframe class='RadarSize' src='RadarChart.aspx' frameborder='0' width='680px' height='480px'&gt;&lt;/iframe&gt;";
                    divRadar1.Visible = true;
                }
                else if (iCount.Equals(2))
                {
                    divRadarChart2.InnerHtml = "";
                    divRadarChart2.InnerHtml = "&lt;iframe class='RadarSize' src='RadarChart.aspx' frameborder='0' width='680px' height='480px'&gt;&lt;/iframe&gt;";
                    divRadar2.Visible = true;
                }
    }
</code></pre>

<p>In SetChart() method i am setting global variable for generating chart. But if for loop is for 4 times then iframe page is loading at last 4 times instead of loading in for loop one by one and due to this i am getting last for loop global variables.</p>

<p>And On RadarChart.aspx page I am using those global variables value like below :</p>

<pre><code>protected void Page_Load(object sender, EventArgs e)
    {
 ltRadar.Text += string.Format("&lt;input type='hidden' name='chxl' value='0:|{0}|1:|{1} |' /&gt;", strRadarChartSubjectLabel, strRadarChartAxisValue);
}
</code></pre>
