473,406 Members | 2,619 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

When does Page Load happen?

I have an aspx page containing two IFrames, each of which
contain aspx pages. The mother page has a dataset filled
with a single call to my Oracle database. This dataset has
three tables. The mother page uses data from table1; the
first child page uses data from table2 and table3; the
last child page uses table3 only.
So the mother page's Page_Load fills the dataset and binds
to some controls. The child pages will use their Page_Load
methods to call a method on the mother page (getDataSet)
to obtain the data they need from the mother dataset.
Question: Does the Page_Load on the mother page finish
before the Page_Load on the children begin? Otherwise, the
call to getDataSet may throw some funky errors.
Nov 17 '05 #1
3 1257
AW
You have no guarantee at all on the order. In fact, it will depend on the
client's browser because it is the one that will issue the requests for the
two pages in the order that it wants.

In your case, I suggest that you use a call to the same method in the two
pages. The method will:
-load the data from the database and place it in the cache if it's not in
the cache, then return it
-return the data from the cache if it's already in.

That way you will have the same optimized effect without any dependence on
the order.
--
To reply, remove a "l" before the @ sign.

Arnaud Weil - MCT, MCSD.Net, MCAD.Net
Nov 17 '05 #2
Yes... the Mother page's page load finishes and serves everything to the
browser and then the browser figures out the that there are IFrames and
generates additional requests for those content pages.

However, I don't believe that GetDataSet will work because the requests for
the IFrame pages are entirely independent requests and the server doesn't
know they are related to the mother page. Instead, you'll have to stash the
dataset in a session variable or some other more global storage.

charles
"Ross" <rm*****@nrcan.gc.ca> wrote in message
news:0e****************************@phx.gbl...
I have an aspx page containing two IFrames, each of which
contain aspx pages. The mother page has a dataset filled
with a single call to my Oracle database. This dataset has
three tables. The mother page uses data from table1; the
first child page uses data from table2 and table3; the
last child page uses table3 only.
So the mother page's Page_Load fills the dataset and binds
to some controls. The child pages will use their Page_Load
methods to call a method on the mother page (getDataSet)
to obtain the data they need from the mother dataset.
Question: Does the Page_Load on the mother page finish
before the Page_Load on the children begin? Otherwise, the
call to getDataSet may throw some funky errors.

Nov 17 '05 #3
> Question: Does the Page_Load on the mother page finish
before the Page_Load on the children begin? Otherwise, the
call to getDataSet may throw some funky errors.
These are asynchronous, unrelated HTTP requests, so there is no way to have
anything depend on when the Page_Load Sub of any of these pages will fire.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"Ross" <rm*****@nrcan.gc.ca> wrote in message
news:0e****************************@phx.gbl... I have an aspx page containing two IFrames, each of which
contain aspx pages. The mother page has a dataset filled
with a single call to my Oracle database. This dataset has
three tables. The mother page uses data from table1; the
first child page uses data from table2 and table3; the
last child page uses table3 only.
So the mother page's Page_Load fills the dataset and binds
to some controls. The child pages will use their Page_Load
methods to call a method on the mother page (getDataSet)
to obtain the data they need from the mother dataset.
Question: Does the Page_Load on the mother page finish
before the Page_Load on the children begin? Otherwise, the
call to getDataSet may throw some funky errors.

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Steve Mauldin | last post by:
This is a standard ASP application that has several pages at the root withthe global.asa. I set a session variable session("accountid") = "123456" within an asp page and then response.redirect to...
6
by: Jonathan | last post by:
I am trying to upload a new version of a file that already exists on my web site. It asks me to overwrite and I choose yes. But when I go to the web page, even a half hour after the upload, the...
2
by: Shannon | last post by:
I am having a very stange issue happen to my web application. I am trying to develop a simple shopping cart. The code works perfectly when I run the application under http://localhost/myapp. ...
2
by: Bill S. | last post by:
Hey, I am trying to figure this out. The hyperlinks on my page open up a small popup window. I have no reason to refresh the parent page or what have you. I was living in a very happy world,...
3
by: Joachim Klassen | last post by:
Hi all, first apologies if this question looks the same as another one I recently posted - its a different thing but for the same szenario:-). We are having performance problems when...
0
by: dlieu | last post by:
I've found an odd situation in where the Load event of the active form fires (after the Unload event) when Access is closed. I am able to reproduce this situation in Access 2002 SP3 and Access 2003...
12
by: TS | last post by:
If I was to have my biz layer ask the data layer to load a particular object based on key field info i pass to it, and it cannot create the object becaues it isnt' in the Db, should the data layer...
3
by: =?Utf-8?B?Q2hhZCBTY2hhcmY=?= | last post by:
I have a 3 page ASP.NET web application that is using an asp:Wizard control on the main page. There is no authentication (completely open) and all processesing is done on this single page. I have a...
5
by: Pat | last post by:
Hi ASP Gurus, Please help me. Autocomplete works fine when the control does not have the focus when the page load. But when I put the focus on page load, then autocomplete does not work. I even...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.