Solved

Parent Page calls Page_Load before Components

Posted on 2004-08-26
2
163 Views
Last Modified: 2010-04-15
Hi All,,

I have a dilema, I have a few web compunents on a page, they all have their own Page_Load function and the parent page obviously has it's own page_load function.

I populate some data in the components Page_Load function and I would then like to use it in the parent page ...

The peoblem is that the Parent Page_Load function gets called before the components ...


Any ideas how I might overcome this problem ?

Txs
Peter
0
Comment
Question by:Pete2003
2 Comments
 
LVL 1

Expert Comment

by:develc
ID: 11901377
Hello Peter,

I don't understand your problem exactly but do you already try it with Page.Response.Redirect and Request?

Good luck.
develc
0
 
LVL 37

Accepted Solution

by:
gregoryyoung earned 250 total points
ID: 11903686
generally speaking you make methods in the controls that the parent can call to tell the controls to load ... or you put code in your properties on the controls that will force a load if they have not been loaded when the parent attempts to access data.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question