I have two page one is parent and child. Parent page has text field and command button. The Link button open a child page as a popup. Child page as Text box and Button. when i click the button it will transfer child textbox data parent page text box. this is working fine when i use normal page(Not using master page on it).
Parent page aspx:
Child.aspx:
This code is working fine. Child page transfer the data parent.
But i when i use master page in parent page. I can open child page using pop up. The child page not transfering the data to parent page with same code. i dont know whats went wrong. Can i anybody what i have to change. I am not getting any error and the data is not transfering
Thanks in advance
Parent page aspx:
Code:
<asp:TextBox ID="TextBox1" runat="server" AutoPostBack="True"></asp:TextBox> <a href="#" onclick="OpenNewWindow()">Lookup</a> function OpenNewWindow() { window.open('Child.aspx','MyPopUp','width=500,height=700,scrollbars=1,resizable=1'); }
Code:
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <input id="Button2" onclick="Transfer()" type="button" value="Select" style="width: 65px" /> function Transfer() { window.opener.form1.TextBox1.value = document.getElementById("TextBox1").value; window.close(); }
But i when i use master page in parent page. I can open child page using pop up. The child page not transfering the data to parent page with same code. i dont know whats went wrong. Can i anybody what i have to change. I am not getting any error and the data is not transfering
Thanks in advance
Comment