Add onother link to the same panel in the same page?
Posted: Tue Sep 23, 2008 2:17 am
Hi!
Can someone tell me how to add onother linkbutton in the page "OnePageCheckout.ascx" that have the same function as the original button? My problem is that I cant add onother "TargetControlID" to the ModalPopupExtender so i dont now how to add onother button that use the same popup.
Now you maybe wonder why I need 2 buttons on the same page that shows the Terms and Condition, I dont.
I have a couple of small pictures on the page and when you click one of them it bring upp the popup and you can view the pictures in full size.
Original:
<asp:LinkButton ID="ShowTCLink" runat="server" EnableViewState="false" Text="view the Terms and Conditions"></asp:LinkButton>
The button connect with this:
<ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender" runat="server"
TargetControlID="ShowTCLink"
PopupControlID="TCDialog"
BackgroundCssClass="modalBackground"
OkControlID="AcceptTermsAndConditions"
OnOkScript="toggleTC(true)"
OnCancelScript="toggleTC(false)"
CancelControlID="DeclineTermsAndConditions"
DropShadow="true"
PopupDragHandleControlID="TCDialogHeader" />
Best regards, Thomas
Can someone tell me how to add onother linkbutton in the page "OnePageCheckout.ascx" that have the same function as the original button? My problem is that I cant add onother "TargetControlID" to the ModalPopupExtender so i dont now how to add onother button that use the same popup.
Now you maybe wonder why I need 2 buttons on the same page that shows the Terms and Condition, I dont.
I have a couple of small pictures on the page and when you click one of them it bring upp the popup and you can view the pictures in full size.
Original:
<asp:LinkButton ID="ShowTCLink" runat="server" EnableViewState="false" Text="view the Terms and Conditions"></asp:LinkButton>
The button connect with this:
<ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender" runat="server"
TargetControlID="ShowTCLink"
PopupControlID="TCDialog"
BackgroundCssClass="modalBackground"
OkControlID="AcceptTermsAndConditions"
OnOkScript="toggleTC(true)"
OnCancelScript="toggleTC(false)"
CancelControlID="DeclineTermsAndConditions"
DropShadow="true"
PopupDragHandleControlID="TCDialogHeader" />
Best regards, Thomas