Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Threading and ASP.NETThreading and ASP.NET
Previous
 
Next
New Post
1/25/2008 2:18 PM
 

Hi There,

Situation :

One ASPX page, it has 3 iframes, each iframe source is a .aspx page, each of this .aspx page display some grids with data. So far So good...

Problem :

iFrame is a Asynchronous, still when this aspx page start loading, src   .aspx[contained within iframe], load one by one and each page take its own time, for exaple :
iframe 1 : Top page takes 5 sec to load
iframe 2 : Content Page 5 sec load
iframe 3 : Bottom Page 5 sec load

Now what I want that is that can I reduce the time by loading all the pages at once Using some threading mechanism?


Thanks in Advance,
MT

 
New Post
1/25/2008 3:21 PM
 

i don't know if a threading mechanism is going to necessarily help you here, the multi-threading you are seeing is at the client and not at the server.

Using IFrame (or any Frame) actually causes the browser to make a second (in your case third and fourth as well) requests to the server.  The worker process on the server (which is processing these requests) see's them as mutually exclusive, it doesn't necessarily know that the parent page (first aspx) is a host for these child pages, so it doesn't do anything and just serves them as the scheduler sees fit and how the server processes the request. 

My advice would be to abandon the IFrame approach and move to using UserControls instead.  These don't use the IFrame, they have a separate naming container from the parent (so you don't get variable collision or anything ilke that) and will render all at the same time as the page being used in question. 

In closing, you can't really control the browser's threading and how it paints the page, well you can but thats certainly not a topic we are getting into and it wouldn't be "widely accepted/adopted". 

Let me know if this helps.


------------- w00t!
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Threading and ASP.NETThreading and ASP.NET


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out