I have a scenario where I have a usercontrol that is initially not visible on a page. If the user selects a certain option in a combo box then the user control is shown as part of an ajax request using RadAjaxManager Prometheus. This works and the user control is dynamically displayed on the page.
However, the user control contains some javascript that is specific to the controls within the user control. That is, it uses <%= SomeControl.ClientID %> within the javascript to get references to the controls within the user control. The problem is that the javascript isn't visible after displaying the user control. When I try to call functions that are contained within the user control I get an error that it can't find the function. How do I make the functions available after showing the user control as part of a ajax request?
However, the user control contains some javascript that is specific to the controls within the user control. That is, it uses <%= SomeControl.ClientID %> within the javascript to get references to the controls within the user control. The problem is that the javascript isn't visible after displaying the user control. When I try to call functions that are contained within the user control I get an error that it can't find the function. How do I make the functions available after showing the user control as part of a ajax request?