473,404 Members | 2,137 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,404 software developers and data experts.

How to ensure "child" ascx control loads before parent Load

Hi,
I have a .ascx control which holds company information which can be
edited. One of the controls inside this is an Address control. The
address control has country and state dropdowns loaded. When I open
the page in edit mode, I want the company control to pre-select the
country and database from the address control.

However, the address control is being loaded after the parent.
Therefore, the state and country dropdowns do not have the correct
data till the end.

How do I go about this?

Thanks in advance,
--Jaffar
Jun 27 '08 #1
1 2223
Hi,

you could use events to communicate between the controls, to signal when
something can be done. The other control could subscribe to address
control's Load event and do the thing when it's loaded (Load event is
raised)? Or in case "readiness" is signaled by some action, raise custom
event when it's done, the other control subscribes to this event and does
its job. I'm not perhaps getting your case here 100%, but the idea of using
events applies

--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net

"jaffarkazi" <ja*********@gmail.comwrote in message
news:36**********************************@u36g2000 prf.googlegroups.com...
Hi,
I have a .ascx control which holds company information which can be
edited. One of the controls inside this is an Address control. The
address control has country and state dropdowns loaded. When I open
the page in edit mode, I want the company control to pre-select the
country and database from the address control.

However, the address control is being loaded after the parent.
Therefore, the state and country dropdowns do not have the correct
data till the end.

How do I go about this?

Thanks in advance,
--Jaffar

Jun 27 '08 #2

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

Similar topics

3
by: red | last post by:
mouse events when the mouse is on a "child control" hi everyone; my problem: I have a userControl in this usercontrol, I have a child control (a button) when the mouse moves over the...
1
by: Jeff_F | last post by:
Hi all. Question in two parts. I'm looking to add two combo boxes. The first will contain regions and the second will contain employee names which correspond to the region selected in the first...
1
by: VMI | last post by:
How can I add a small "Please wait..." form to a child form so that when I minimize the child form, the "Please Wait..." form will also disappear? This form will be displayed when the child form is...
0
by: Qwert | last post by:
Heya, I have a user control (inherits from listview control). I add a textbox control to it as a child control and give the child control the focus. All is well when I type text (keyboard input)...
4
by: Greg | last post by:
How do I programmatically load an .aspx page into the contentplaceholder? Similar to what would happen in the "navigateURL" property when clicking on a hyperlink on the master page. . . ASP .NET...
0
by: ChrisMiddle10 | last post by:
Hey, I am developing a fairly simple custom web control. I am, however, having a major problem understanding how to have any child controls maintain state. For instance, in my particular control...
2
by: Joe HM | last post by:
Hello - I have an application with which I am trying to determine whether another application has a "child" window open. So I used Process.MainWindowTitle() but that will only give me the main...
3
by: rlueneberg | last post by:
I want to change the color of an "a" child element inside a table cell via javascript. Is there any way to do that? Ps: there is no id assigned to child elements. I would like to discover the child...
1
by: hartattack72 | last post by:
Hello. I am new to access, but have had great success in creating an application. My one user is requesting a function to save time in data entry... and I am stumped being the plebian that I am. ...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.