Click here to Skip to main content
15,880,956 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to use modalpopextender in c# , when i click on edit button of grd it will call grd_RowCommand() , then it should show ModalPopUpExtender1 , if i click on edit button of repeter it will call repeter _ItemCommand() , then it should show ModalPopUpExtender2 .
Can anyone help me.
ASP.NET
<asp:ImageButton ID="grd_imgFake" runat="server" />
<ajaxTool:ModalPopupExtender ID="ModalPopupExtender1"  runat="server" BackgroundCssClass="modalBackground" TargetControlID="grd_imgFake" PopupControlID="grd_panelModalPopup" BehaviorID="grd_panelModalPopup" Enabled="true" CancelControlID="grd_imgCancel"></ajaxTool:ModalPopupExtender>
<asp:Panel ID="grd_panelModalPopup" runat="server" CssClass="modalPopup" Visible="False">
<asp:ImageButton ID="grd_imgCancel" runat="server" ImageAlign="Right" /></asp:Panel>

 <asp:ImageButton ID="repeter_imgFake" runat="server" />
 <ajaxTool:ModalPopupExtender ID="aModalPopupExtender2"  runat="server" BackgroundCssClass="modalBackground" TargetControlID="repeter_imgFake" PopupControlID="repeter_panel" BehaviorID="repeter_panel" Enabled="true" CancelControlID="repeter_imgCancel"></ajaxTool:ModalPopupExtender>
<asp:Panel ID="repeter_panel" runat="server" CssClass="modalPopup" Visible="False">
      <asp:Label ID="lbl" runat="server" Text="accounting"></asp:Label>
     <asp:ImageButton ID="repeter_imgCancel" runat="server" ImageAlign="Right" />
</asp:Panel>

i have used thses but its not working , it just showing ModalPopUpExtender2 .
Posted

Use
ASP.NET
<asp:panel id="repeter_panel" runat="server" cssclass="modalPopup" style="display:none;" xmlns:asp="#unknown"> </asp:panel>

instead of
ASP.NET
<asp:panel id="repeter_panel" runat="server" cssclass="modalPopup" visible="False" xmlns:asp="#unknown"></asp:panel>


and i can use as many modalpopupextender.

Thank you.
 
Share this answer
 
 
Share this answer
 
Comments
thank you for reply , i want to use Modalpopupextender as separated means i donot want use ModalPopUpextender within ModalPopUpextender.
Both will appear on different click event.
If you know other answer , reply .
Again Thank you.
[no name] 27-Nov-14 4:08am    
Yes I got that. That is why I pasted first two links. You can get an idea from this.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900