Hello, I was trying to return the selected grid value to parent window, but some problems in this. Here is some code: On Parent Form : Button1.Attributes.Add("onclick", "window.open('WebForm2.aspx');") On Child i am trying to do things like : btnOK.Attributes.Add("onclick", "window.opener.Form1.txtValue.value = '" + txtValue.Text + "'") - Works in case of ordinary values. i want to have value returned whenever Select Button is selected in Grid Template column. Snippet is : If e.CommandName = "Select" Then txtValue.Text = DataGrid1.DataKeys.Item(e.Item.ItemIndex) DataGrid1.Attributes.Add ("OnItemCommand", "window.opener.Form1.txtValue.value = '" + txtValue.Text + "'") End If This is what i want i.e. value is returned to parent each time value is selected in gird - on child form. Please correct me where i am wrong? Waiting, Regards, Asim