Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 30th, 2007, 08:17 PM
Authorized User
Join Date: Dec 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sasidhar79
Default grid view row editing event fired after postback


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
What if I need control value before event is fired pauliehaha ASP.NET 3.5 Basics 9 May 22nd, 2008 12:51 PM
Get old value of a field of a row on grid view ??? nobitavn94 ASP.NET 2.0 Professional 0 December 30th, 2006 05:06 AM
SortCommend event is being fired twice anup_daware .NET Framework 2.0 2 August 9th, 2006 12:19 AM
SortCommend event is being fired twice anup_daware .NET Framework 1.x 1 August 4th, 2006 05:32 AM
Session_Start event not fired rl ASP.NET 1.0 and 1.1 Professional 20 February 22nd, 2005 04:29 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.