Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 30th, 2007, 08:17 PM
Authorized User
Join Date: Dec 2003
Location: Chennai, Tamil NAdu, India.
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



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 12:58 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.