grid view row editing event fired after postback
Hi,
I have a parent aspx page and a child aspx page, the parent aspx page has a gridview control with the Edit button enabled, on clicking the edit button I need to load the child page on another window by using window.open, in the child window I have a asp:button and on clicking it the pop up window closes and the parent page refreshes after the parent page page_load event is fired the gridview's rowediting event is fired thereby contnously reloading the popup.
the code:
Protected Sub grdFamilyMembers_RowEditing(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewEditEventArgs) Handles grdFamilyMembers.RowEditing
Dim jsCloseWindowScript As String = "<script language=javascript>window.open('editFamily.aspx?P ersonNumber=" & grdFamilyMembers.DataKeys.Item(0).Value.ToString() & "');</script>"
ClientScript.RegisterStartupScript(Me.GetType, "OpenEditFamily", jsCloseWindowScript)
End Sub
I have the following as the body tag for the child page
<body onunload="opener.location.reload();">
please advice.
thank you
sasidhar
thanks,
Sasidhar
__________________
thanks,
Sasidhar
|