Results 1 to 4 of 4

Thread: How to pass value from Child to Parent Window

  1. #1
    Join Date
    Apr 2009
    Posts
    90

    How to pass value from Child to Parent Window

    How do we Pass value from child page to parent page, this functionality would be very simple When any user goes to the second page for some information and selects the check box for some comment kind of thing these changes would reflect on the main page or on the front page.

  2. #2
    Join Date
    Dec 2008
    Posts
    183

    Re: How to pass value from Child to Parent Window

    To achieve this on parent page and on child page you need to make such a field to access that hidden field to set the IDs of selected contacts. In the child window will contain a GridView control. The GridView control will also have checkboxes so you can select various rows. for more clarification Once you click the button, the child window will close and you will see the selected items in the parent window.Once the selected IDs are available on parent window, you need to postback the page so that I can take all the data for those IDs from database and add it to grid for edit or save.

  3. #3
    Join Date
    Oct 2008
    Posts
    107

    Re: How to pass value from Child to Parent Window

    It calls the child window for taking the input value that will be further passed to the parent window and parent window also displays the passed value. There can be several ways using javascript/jsp: window. operner. location. reload() You can refresh the parent window using javascript from the child(popup window) The child widow which will be open when we open it from the parent window and will take the value to pass it on to the parent window.

  4. #4
    Join Date
    Nov 2008
    Posts
    38

    Re: How to pass value from Child to Parent Window

    Use script call back feature of asp.net 2.0. In this way you can call serverside code without postback. The data passed back is then a simple string and can be copied without problem. On the parent side the json encoded string is evaluated to a Javascript object. You can add the database related code in RaiseCallbackEvent() method and in GetCallbackRetsult() method you can pass a boolean flag indicating that database code is executed successfully.

Similar Threads

  1. DNS resolution between child and parent domain
    By StingIT in forum Windows Server Help
    Replies: 1
    Last Post: 28-01-2012, 11:17 AM
  2. Replies: 5
    Last Post: 18-06-2011, 07:39 AM
  3. Close pop-up window and refresh parent page
    By Chrisch in forum Software Development
    Replies: 3
    Last Post: 16-05-2009, 06:47 PM
  4. C#: How to access webBrowser child window
    By moshe2b in forum Software Development
    Replies: 1
    Last Post: 06-02-2009, 11:50 PM
  5. Replies: 1
    Last Post: 19-06-2008, 01:58 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,958,748.60648 seconds with 17 queries