Steve_Buck
asked on
Using a dynamic Controls ID as TargetID for ModalPopupExtender
Hi,
I have a number of dynamically generated buttons added to an ajax accordion. I also have a modalPopup extender to popup a panel. I want the dynamic buttons to popup the panel. Currently I have the following: (default)
<ajaxToolkit:ModalPopupExt ender ID="ModalPopupExtender1" runat="server" TargetControlID="Button1"
PopupControlID="pnlJobDeta ils"
CancelControlID="cmdClose"
BackgroundCssClass="modalB ackground"
/>
I want to be able todo something like:
<ajaxToolkit:ModalPopupExt ender ID="ModalPopupExtender1" runat="server" TargetControlID=AccordionP ane1.Contr ols(0).Con trols
PopupControlID="pnlJobDeta ils"
CancelControlID="cmdClose"
BackgroundCssClass="modalB ackground"
/>
or other, if you can think of a better way of doing this please let me know. Basically I have a number of SupportJobs which are represented by the buttons on the accordion panel, added dynamically based on an SQL query. I then want to be able to pop the modal panel by pressing one of the buttons which lets you edit the details of each job, I will have to pass in the JOBID to the panel which is stored as the text property on each button.
Thanks in advance.
James.
I have a number of dynamically generated buttons added to an ajax accordion. I also have a modalPopup extender to popup a panel. I want the dynamic buttons to popup the panel. Currently I have the following: (default)
<ajaxToolkit:ModalPopupExt
PopupControlID="pnlJobDeta
CancelControlID="cmdClose"
BackgroundCssClass="modalB
/>
I want to be able todo something like:
<ajaxToolkit:ModalPopupExt
PopupControlID="pnlJobDeta
CancelControlID="cmdClose"
BackgroundCssClass="modalB
/>
or other, if you can think of a better way of doing this please let me know. Basically I have a number of SupportJobs which are represented by the buttons on the accordion panel, added dynamically based on an SQL query. I then want to be able to pop the modal panel by pressing one of the buttons which lets you edit the details of each job, I will have to pass in the JOBID to the panel which is stored as the text property on each button.
Thanks in advance.
James.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.