Hi,
I have a modal popup. It passes data to parent when click on a button in firefox. But it gives error window.opener.document.getDocumentById()...is null or not an object for IE.
How can i pass value to a textbox control on parent page?
parent page
popup page
I have a modal popup. It passes data to parent when click on a button in firefox. But it gives error window.opener.document.getDocumentById()...is null or not an object for IE.
How can i pass value to a textbox control on parent page?
parent page
VB.NET:
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim queryString As String = "PopUpSaticiHesap.aspx?param=" & TextBox_firmaunvani.Text.Trim()
Dim newWin As String = "window.showModalDialog('" & queryString & "', 'List', 'dialogHeight: 250px; dialogWidth: 650px; dialogTop: 150px; dialogLeft: 150px; edge: Raised; center: Yes; resizable: No; status: No;');"
ClientScript.RegisterStartupScript(Me.GetType(), "pop", newWin, True)
End Sub
popup page
VB.NET:
Protected Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles GridView1.RowCommand
If e.CommandName = "Select" Then
Dim rowIndex As Int32 = Convert.ToInt32(e.CommandArgument.ToString())
Dim Lifnr As String = GridView1.DataKeys(rowIndex).Values("Lifnr").ToString()
Dim name As String = GridView1.DataKeys(rowIndex).Values("name").ToString().Replace("Ü", "Ü")
name = name.Replace("ü", "ü")
name = name.Replace("Ç", "Ç")
name = name.Replace("ç", "ç")
name = name.Replace("IÖ", "Ö")
name = name.Replace("ö", "ö")
Page.ClientScript.RegisterStartupScript(GetType(Page), "ValueScript", "javascript:GetRowValue('" & Lifnr & "','" & name & "');", True)
End If
End Sub