keyongtech


  keyongtech > dotnet.framework.aspnet.* > dotnet.framework.aspnet.main > 06/2008

 #1  
06-17-08, 03:27 AM
jaffarkazi
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
 #2  
06-17-08, 05:57 PM
Teemu Keiski
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
Similar Threads
Adding "child" records to be linked to a parameterized "parent" record

I am fairly new to vb coding fo Access so forgive me if this seems obvious. How do I create a form to allow the user to enter new data thereby creating a new record, that...

The "Visible" property of a parent control ruins that one of its child controls

Hi all, I got a problem: I have a Panel control which has many mixed child controls (buttons, checkboxes, comoboxes). All controls are visible (the parent container Panel is...

The "Visible" property of a parent control ruins that one of its child controls

Hi all, I got a problem: I have a Panel control which has many mixed child controls (buttons, checkboxes, comoboxes). All controls are visible (the parent container Panel is...

datasource of child .ascx not visible to parent .ascx

//Parent ascx.. Control ChildControl = Page.LoadControl(Request.ApplicationPath + "/ChildControlSourceCode.ascx"); Page.WhatEverContainer.Controls.Add(ChildControl //Now...

XML Bulk Load 3.0 SP2, ERROR: "Schema: the parent/child table....."

I have a setup that looks like the following simple example. The tables: [Patient] pID PK [Registration] rID PK pID FK [Measurement]


All times are GMT. The time now is 01:34 AM. | Privacy Policy