Sep 24, 2012, 6:41 PM
[CLOSED] Calling UserControl Methods from parent form
I will try to explain this without an example (which is on a standalone network).
I have a form that that loads two user controls. These user controls each have a number of fields on them. For testing purposes I have added a "Fillout Defaults" button on the main form that fills in all of the fields so I can routinely perform testing. When I press the button on the it calls a direct event. How can I call to the user controls to each fillout their default values.
I have a form that that loads two user controls. These user controls each have a number of fields on them. For testing purposes I have added a "Fillout Defaults" button on the main form that fills in all of the fields so I can routinely perform testing. When I press the button on the it calls a direct event. How can I call to the user controls to each fillout their default values.
...
<ext:UserControlLoader runat="server" ID="uclGeneral Path="~/CRTS/urGeneralControl.ascx" />
<ext:UserControlLoader runat="server" ID="uclApproval Path="~/CRTS/urApprovalControl.ascx" />
...
<ext:Button runat="server" Text="Fillout Defaults" Icon="PencilAdd">
<DirectEvents>
<click onEvent="FilloutDefaults" />
</DirectEvents>
</ext:Button>
Last edited by geoffrey.mcgill; Sep 27, 2012 at 4:05 PM.
Reason: [CLOSED]