Click here to Skip to main content
15,889,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to show three panels one by one after clicking next button of modal popup and hide previous one...is it possible?

//code

XML
<cc1:ModalPopupExtender ID="MpeBuyNow1" runat="server" TargetControlID="BtnATHiddenBuyNow" PopupControlID="PanelBuyNow" CancelControlID="" >

                               </cc1:ModalPopupExtender>

CSS
<asp:Panel ID="PanelBuyNow" runat="server" >

<asp:Button ID="BtnATNextBNW1" runat="server" Text="Next" Width="60px" 
                                         Height="25px"  style="margin-top:40px;"  onclick="BtnATconfirmATC_Click" />
                                       
  
<asp:Panel ID="PanelBuyNow2" runat="server" >
<asp:Button ID="BtnATNextBNW2" runat="server" Text="Next" Width="60px" 
                                         Height="25px"  style="margin-top:40px;"  onclick="BtnATconfirmATC_Click" />
                                       
  
<asp:Panel ID="PanelBuyNow3" runat="server" >
<asp:Button ID="BtnATNextBNW3" runat="server" Text="Next" Width="60px" 
                                         Height="25px"  style="margin-top:40px;"  onclick="BtnATconfirmATC_Click" />
Posted
Comments
Richard C Bishop 11-Feb-13 17:12pm    
It is possible, you will just have to figure out the logic you want. Your target control would be a hidden field, it appears you might already be that far, and you would call the Show() in whatever event you are triggering your popup. You would then have to keep track some how of the particular panel you are wanting to show.
Member 9579525 12-Feb-13 1:44am    
how to use hidden field value as target control for three panels...I havent use hidden field
Richard C Bishop 12-Feb-13 11:26am    
Sorry, let me clarify. You can use any button, just set the visibility to false so that the modal still recognizes it but it doesn't show on the page.

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