Jun 13, 2013, 6:21 PM
[CLOSED] DirectMethod from inside Dynamic User Control
I'm sure this is somewhere but I've been fighting over this simple issue for the past day. I'm loading a user control using the LoadUserControl and i need to execute a DirectMethod from inside that user control after it's been loaded, for example a button. If the control is added to the page there are no issues, but loading it via LoadUserControl doesn't work and I'm guessing it has something to do with the page controls and it not being added because it can't find the user control generated ID method, would I do this in the LoadUserControl function? Whats the best way to do this?
Just need a simple example.
Error is: The control with ID 'UC2625' not found (Client ID of my userControl that is dynamically loaded)
Just need a simple example.
Error is: The control with ID 'UC2625' not found (Client ID of my userControl that is dynamically loaded)
Last edited by Baidaly; Jun 15, 2013 at 1:50 AM.
Reason: [CLOSED]