Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/11/2012, 14:14
Dorez30
 
Fecha de Ingreso: noviembre-2012
Mensajes: 2
Antigüedad: 11 años, 5 meses
Puntos: 0
Pregunta problema de devolucion de un popup a un formulario que utiliza Master page

hola a todos, tengo un problema en la devolución de valores en un popup.

utilice e código siguiente,
Código Javascript:
Ver original
  1. <script language="javascript">
  2.         function EscribeParaPadre()
  3.         {
  4.             try
  5.             {
  6.                 var varTexto01 = window.opener.document.getElementById("TextBox13");
  7.                 var varTexto02 = window.opener.document.getElementById("TextBox2");
  8.  
  9.                 if (varTexto01) varTexto01.value = document.getElementById('tbrut').value;
  10.                 if (varTexto02) varTexto02.value = document.getElementById('tbdetalle').value;
  11.                
  12.                 //self.close();
  13.             }
  14.             catch (ex)
  15.             {
  16.                 alert(ex.message);
  17.             }
  18.         }
  19.     </script>

Código HTML:
Ver original
  1. <div id="CuadroInfo">
  2.        
  3.             <asp:TextBox ID="tbrut" runat="server" width="10%" Enabled="False"></asp:TextBox>&nbsp;
  4.             <asp:TextBox ID="tbdetalle" runat="server" width="75%" Enabled="False"></asp:TextBox>&nbsp;
  5.             <INPUT onclick="javascript:EscribeParaPadre();" type="button" value="Aceptar">
  6.            
  7. </div>

el cual funciona bien cuando las paginas no utilizan masterPage.

al popup lo llamo con el siguiente código en asp.net.
Código ASP:
Ver original
  1. string url = "../searchform/searchCustomersSuppliers.aspx";
  2.             string script = "window.open('" + url + "','','width = 645px height = 440px')";
  3.             if (!ClientScript.IsClientScriptBlockRegistered("NewWindow"))
  4.             {
  5.                 ClientScript.RegisterClientScriptBlock(this.GetType(), "NewWindow", script, true);
  6.             }
favor de ayudarme, nose como devolver desde un popup un valor a un fomulario que utiliza masterpage (../packingmatentexit/matentexit.aspx)

de ante mano gracias. .