AJAX Modal popup from link inside Repeater

I am trying to launch a modal popup from a link displayed by a Repeater.  

When I click the link, the screen dims by calling the css from the Modal popup extender ID tag, but the panel is never displayed.
<asp:Panel ID="Panel3" runat="server" CssClass="modalPopup" >
          
            <asp:Button ID="Button1" runat="server" Text="Button" />
            <asp:TextBox ID="TextBox7" runat="server">   </asp:TextBox>
            <br />
</asp:Panel>
             

  <asp:Repeater ID="rptrExample" runat="server" >
        <HeaderTemplate><ul id='rp'></HeaderTemplate>
     
 
        <ItemTemplate>
      <cc1:ModalPopupExtender ID="Panel3_ModalPopupExtender" runat="server" 
           TargetControlID="replyLink" PopupControlID = "Panel3" DropShadow ="true"   CancelControlID = "Button1"  BackgroundCssClass="modalBackground">
        </cc1:ModalPopupExtender>
                  
               
        
            <li><%# DataBinder.Eval(Container.DataItem, "P1") %>
            ,
            <%# DataBinder.Eval(Container.DataItem, "Age") %>
            
            <%# DataBinder.Eval(Container.DataItem, "code") %>
            
            <br />
            <br />
            "
            <%# DataBinder.Eval(Container.DataItem, "Body") %>
            "

            
              
              <asp:LinkButton ID="replyLink" runat="server">Reply</asp:LinkButton>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:LinkButton ID="commentLink" runat="server">Comment</asp:LinkButton>
            </li>
            
        </ItemTemplate>
        <FooterTemplate>
            </ul>
        </FooterTemplate>
    </asp:Repeater>

Open in new window

cmushaunAsked:
Who is Participating?
 
rajeeshmcaCommented:
Hi

Give the Panel also within the Repeater control
 like


             

  <asp:Repeater ID="rptrExample" runat="server" >
        <HeaderTemplate><ul id='rp'></HeaderTemplate>
     
 
        <ItemTemplate>
    <asp:Panel ID="Panel3" runat="server" CssClass="modalPopup" >
         
            <asp:Button ID="Button1" runat="server" Text="Button" />
            <asp:TextBox ID="TextBox7" runat="server">   </asp:TextBox>
            <br />
</asp:Panel>
      <cc1:ModalPopupExtender ID="Panel3_ModalPopupExtender" runat="server"
           TargetControlID="replyLink" PopupControlID = "Panel3" DropShadow ="true"   CancelControlID = "Button1"  BackgroundCssClass="modalBackground">
        </cc1:ModalPopupExtender>
                 
               
       
            <li><%# DataBinder.Eval(Container.DataItem, "P1") %>
            ,
            <%# DataBinder.Eval(Container.DataItem, "Age") %>
           
            <%# DataBinder.Eval(Container.DataItem, "code") %>
           
            <br />
            <br />
            "
            <%# DataBinder.Eval(Container.DataItem, "Body") %>
            "

           
             
              <asp:LinkButton ID="replyLink" runat="server">Reply</asp:LinkButton>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:LinkButton ID="commentLink" runat="server">Comment</asp:LinkButton>
            </li>
           
        </ItemTemplate>
        <FooterTemplate>
            </ul>
        </FooterTemplate>
    </asp:Repeater>
0
 
Kumaraswamy RCommented:
0
 
cmushaunAuthor Commented:
I've seen this but still having this issue
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.