PC Review


Reply
Thread Tools Rate Thread

Update parent form from child form

 
 
JimmyJamz
Guest
Posts: n/a
 
      17th Apr 2009
I currently have a parent form that you search for a project. It then
displays the project information and gives a few options with a couple
buttons. Now when you click on of the buttons, it brings up a popup
where you can import an excel spreadsheet which then upon a successful
import, I would like to refresh the parent page as the imported file
will have updated information regarding the project. But because the
parent page has a search, when I refresh the page using

const string cRefreshParent = "<script language='javascript'>" + "
window.opener.document.forms(0).submit();" + "</script>";
const string cRefreshParentKey = "RefreshParentKey";
this.Page.ClientScript.RegisterClientScriptBlock(this.GetType(),
cRefreshParentKey, cRefreshParent);

it refreshes the page and doesn't have any information displayed. I
then have to type the project number in again and click search and it
will then display the new information.

Is there a way to 'click the button' from the child form? The button
doesn't have a click event but rather is opened using javascript with
the following code:

impBtn.Attributes.Add("onclick", "window.open('insertPage.aspx?
PROJNUM=" + pn+ "',
'newwindow','width=450,height=250,menubar=yes,toolbar=no,resizable=no,
status=1');return false;");
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Navigating parent-child relation to update the child records --- How??? Hexman Microsoft VB .NET 1 5th Oct 2006 09:21 AM
passing data child parent parent child Maarten Microsoft C# .NET 3 21st Nov 2005 05:13 PM
is there an event that fires when a child control is added to a parent container control (ie child panel added to a parent panel)? notu Microsoft Dot NET Compact Framework 1 19th Jul 2005 07:34 PM
MDI - how to open a child from a child within MDI parent form? Marina Neyman Microsoft Dot NET Framework Forms 0 7th Feb 2004 02:27 AM
Parent/Child Components: How to make the child components go away when deleting the Parent. Patrick Vanden Driessche Microsoft VB .NET 5 14th Nov 2003 11:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:28 PM.