I have a user control that contains the Modal Popup control.
I would like to set the Target Control Id of the ModalPopupExtender to be a control that is located on a different page.
For example I have my master page and I need to include the user control. But i want a button that is on the Master Page to be the TargetControlId.
The problem Im having is that If I include the control that initiates the extender into the usercontrol, then when that user control is placed on the Master Page, its inherating all the Styles of the <div> on the master page its being placed in which is a problem.
What i would like to do is create the user control and then include it in the master page outside of the main content area but then put a image button with in the header which would then call the extender.
When i do this i get the error:The TargetControlID of 'ModalPopupExtender' is not valid. A control with ID 'ctl00_cmdGetHelp' could not be found.
Master Page: Image button renders with Id of ctl00_cmdGetHelp
UserControl: I set the TargetControlId to : "ctl00_cmdGetHelp"
Again this causes an error.
Any ideas??