Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6620409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:05:45+00:00 2026-05-25T21:05:45+00:00

I have multiple iframe in my asp.net page. But all this iframe are loading

  • 0

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.

What to do for this.

This is my main page code where Iframe created in loop:

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

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.

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

protected void Page_Load(object sender, EventArgs e)
    {
 ltRadar.Text += string.Format("<input type='hidden' name='chxl' value='0:|{0}|1:|{1} |' />", strRadarChartSubjectLabel, strRadarChartAxisValue);
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T21:05:46+00:00Added an answer on May 25, 2026 at 9:05 pm

    All Iframe will loads pages at last when your loop completes its execution. So at that time you will have last data in all your variables if you are using global variables and set those variable’s value in your iframe page. Better you try with query string where you can pass your all variable’s values and set those values in page. So all pages will have seperate data to load.

    Try this :

    <iframe class='RadarSize' src='RadarChart.aspx?q1=val1&q2=val2' frameborder='0' width='680px' height='480px'></iframe>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have multiple iframes on my page and this jQuery replaces them all with
I have multiple pages that have this pattern: <iframe frameborder =0 src=[someURL] width=100% height=900>
Okay, I have a page on and on this page I have an iframe.
I have a requirement to have multiple iframes on one page, that all interact
I am having trouble using JQuery with ASP.net. I have a HTML img ,
I have a php page that has multiple iframes on the page. these iframes
I have multiple classes that all derive from a base class, now some of
I have multiple layers in an application and i find myself having to bubble
I have multiple threads (C# application running on IIS) running that all need to
I have a facebook Iframe application with multiple PHP pages in it. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.