Dear All,

I am struggle resolving this Issue

I have a Parent.aspx and popup.aspx pages. I want to pass parameters from parent.aspx page and show it in popup.aspx page. It is working. I am displaying value in label of popup.aspx page now I want that label value on button click close popup page and paste label value in textbox of parent.aspx page

how can do that

My parent.aspx page is


<asp:Button ID="cmdimportlab" runat="server" Font-Bold="True" Font-Names="Calibri" OnClientClick="Button1_Click"
Font-Size="Medium" Height="38px" Text="IMPORT BIOCHEMISTRY LAB" Width="355px" />


and on button1_click

Response.Write("<SCRIPT>")
Response.Write("window.open('popup.aspx?hp=" + hosp + " &adate=" + admdate + "',null,'height=400,width=900,status=yes,toolbar=n o,menubar=no,location=no')")
Response.Write("</SCRIPT>")

it will display a popupwindow with values

My popup.aspx page

<asp:Label ID="lbllab" runat="server" Text="Label"></asp:Label><br />

<asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="Button1_Click()"/>

and on button1_Click

Dim strJavaScript As String
strJavaScript = "<Script Lanaguage='JavaScript'>"
strJavaScript = strJavaScript & "var ItemGroupID='" & lbllab.Text & "';"
'strJavaScript = strJavaScript & "alert('" & TreeView1.SelectedNode.Value & "');"
strJavaScript = strJavaScript & " window.opener.document.getElementById('ct100_ContentPlaceHolder1_txtlab').innerHTML=ItemGroupID;" 'window.returnValue = ItemGroupID;"

strJavaScript = strJavaScript & "self.close();"

strJavaScript = strJavaScript & "return false;"

'strJavaScript = strJavaScript & "window.close()"
strJavaScript = strJavaScript & "</Script>"


but this was not returning any value and also not closing popup.aspx page


please help me


thank you in advance.




shubha