locked
Un extensor no puede estar en un UpdatePanel diferente del control que lo extiende. RRS feed

  • Question

  • m e sale el error del titulo debido  que tengo 2 update panel, ambos son necesarios , como uedo evitar este error

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
         
    <ContentTemplate>
           
    <div class="div_cuerpo_pagina">
               
    <div class="div_candado" runat="server" id="div_candado">
                   
    <img src="Imagenes/candado.JPG" class="img_candado" alt="Seguridad de login" runat="server" id="img_camdado" />
               
    </div>
               
    <div class="div_form_login">
                   
    <div class="div_usuario">
                       
    <div class="div_labeluser">
                           
    <asp:Label ID="Label1" runat="server" Text="Usuario:" CssClass="label" ></asp:Label>
                       
    </div>
                       
    <div class="div_txtuser">
                           
    <asp:TextBox ID="txtUsuario" runat="server" CssClass="textbox"></asp:TextBox >
                       
    </div>
                   
    </div>
                   
    <div class="div_pass">
                       
    <div class="div_labeluser">
                           
    <asp:Label ID="Label2" runat="server" Text="Password:" CssClass="label" ></asp:Label>
                       
    </div>
                       
    <div class="div_txtuser">
                           
    <asp:TextBox ID="TextBox2" runat="server" CssClass="textbox" TextMode="Password"></asp:TextBox >
                       
    </div>
                   
    </div>
                   
    <div class="div_perfil">
                       
    <div class="div_labeluser">
                           
    <asp:Label ID="Label3" runat="server" Text="Perfil:" CssClass="label"></asp:Label>
                       
    </div>
                       
    <div class="div_txtuser">
                           
    <asp:DropDownList ID="cbo" runat="server" CssClass="dropdownList"></asp:DropDownList>
                       
    </div>
                   
    </div>
                   
    <div class="div_capcha" runat="server" id="div_capcha" visible="false">
                       
    <div class="div_labeluser">
                            &nbsp;
                       
    </div>
                       
    <div class="div_txtuser">
                           
    <div>
            
                                        <img title="Ingrese el código mostrado en la imágen" class="capcha" alt="Visual verification"
                                        src='controles/JpegImage_VB.aspx?r=
    <%= System.Guid.NewGuid().ToString("N")  %>'
                                        vspace="0" />
                                       
    <asp:ImageButton ToolTip="Generar nueva imágen" ID="ibtnRefresh" runat="server" ImageUrl="Imagenes/refresh-32x32.png" CssClass="btn_refresh_capcha" OnClick="ibtnRefresh_Click">
                                       
    </asp:ImageButton>
                             
                           
    </div>
                       
    </div>
                   
    </div>
                   
    <div class="div_codigo_capcha" runat="server" id="div_codigo_capcha" visible="false">
                       
    <div class="div_labeluser">
                            &nbsp;
                       
    </div>
                       
    <div class="div_txtuser">
                           
    <asp:TextBox ID="txtCapcha" runat="server" CssClass="textbox"></asp:TextBox >
                       
    </div>
                   
    </div>
                   
    <div class="div_label">
                       
    <asp:Label ID="lblMensaje" runat="server" ForeColor="red" ></asp:Label>                                   
                   
    </div>
                   
    <div class="div_boton">
                       
    <div class="div_btn_cancelar">
                           
    <asp:Button ID="btnCancelar" runat="server" Text="Cancelar" CssClass="boton" />
                       
    </div>
                       
    <div class="div_btn_ingresar">
                        
                           
    <asp:Button ID="btn_Ingresar" runat="server" Text="Ingresar" CssClass="boton" />
                          
                        
                          
                       
    </div>
                   
    </div>
                   
    <div class="div_boton">
                       
    <div class="div_btn_cancelar">
                                
                       
    </div>
                       
    <div class="div_btn_ingresar">
                    
                           
    <asp:LinkButton ID="link_cambiar_contraseña" runat="server"
                               
    Text="Cambiar contraseña" CssClass="link_cambiar_pass" 
                                
    OnClientClick="modalWin()"/>
              
                  
    </div>
                   
    </div>
                   
               
    </div>
           
    </div>
    </ContentTemplate>
    </asp:UpdatePanel>
           
           
    <asp:Panel ID="pnlSeleccionarDatos" runat="server" >
               
    <asp:Button ID="btnCerrar" runat="server" Text="Cerrar" />
               
    <asp:UpdatePanel ID="UpdatePanel3" runat="server">
    <ContentTemplate>
    <!-- Todo el contenido del modal -->
    Valor:
    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                   
    <asp:Button ID="btnAceptar1" runat="server" Text="Button"
                       
    onclick="btnAceptar1_Click" />
             
    </ContentTemplate>
               
    <Triggers>
                  
    <asp:AsyncPostBackTrigger ControlID="btnAceptar1" EventName="Click" />
    </Triggers>
        
    </asp:UpdatePanel>
           
    </asp:Panel>
           
        
    <asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
       
    TargetControlID="btnCancelar"
       
    PopupControlID="pnlSeleccionarDatos"
       
    CancelControlID="btnCerrar"
       
    BackgroundCssClass="FondoAplicacion"  >
      
    </asp:ModalPopupExtender>


    • Edited by Augusto C Tuesday, April 9, 2013 1:11 PM
    • Moved by Mike Feng Wednesday, April 10, 2013 6:13 AM
    Tuesday, April 9, 2013 1:11 AM

Answers

All replies

  • Plz speak English and send ur question to:

    forums.asp.net


    If you think one reply solves your problem, please mark it as An Answer, if you think someone's reply helps you, please mark it as a Proposed Answer

    Help by clicking:
    Click here to donate your rice to the poor
    Click to Donate
    Click to feed Dogs & Cats

    • Marked as answer by Just Karl Wednesday, October 16, 2013 4:02 PM
    Tuesday, April 9, 2013 2:17 AM
  • ya corregì el título de la pregunta

    ese es el error que me sale

    datallando un poco mas estoy utilizando un modalpopupextender del ajaxcontroltoolkit

    utilizo un update panel para realizar una busqueda en el popup

    luego utilizo un popup en formulario base para realziar algunas operaciones

    pero cuando uso ambos me sale el error del titulo

    Un extensor no puede estar en un UpdatePanel diferente del control que lo extiende.

    como puedo hacerlo sin error

    gracias

    Tuesday, April 9, 2013 1:14 PM
  • Hello,

    According to your sample codes, this seems to be an ASP.Net issue. If so, you may need to post it to a ASP.Net forum. Here's the official forum http://forums.asp.net/ which use English language.

    Regards,


    Shanks Zen
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Proposed as answer by Cor Ligthert Wednesday, April 10, 2013 5:53 AM
    • Marked as answer by Just Karl Wednesday, October 16, 2013 4:02 PM
    Wednesday, April 10, 2013 5:10 AM