Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Refreshing parent page from modal dialog page [modified]

Refreshing parent page from modal dialog page [modified]

Scheduled Pinned Locked Moved ASP.NET
helpcsharpcsstutorialannouncement
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    C Coudou
    wrote on last edited by
    #1

    Hi, I have parent.aspx page which has a grid, the grid has column named Date. When I double click on that column, the child.aspx page will pop-up. The pop-up page is a MODAL DIALOG which is the "showModalDialog("child.aspx")". Now, on that child.aspx dialog page,it has a calendar. If I will change the date then click update button. The parent.aspx page should automatically refresh without closing the child.aspx page, but it does not. There is an example here in codeproject which is exactly the same on my problem but it uses window.open not dialog. Behavior of window.open and dialog is not the same. You cannot call the window.opener.document.forms(0).submit(), it will generate error. Please help. Thanks.

    C# コードMicrosoft End User 2000-2008 「「「「「「「「「「「「「「「「「「「「「「「「「「「「 The best things in life are free 」」」」」」」」」」」」」」」」」」」」」」」」」」」」

    modified on Thursday, June 9, 2011 2:59 AM

    O 1 Reply Last reply
    0
    • C C Coudou

      Hi, I have parent.aspx page which has a grid, the grid has column named Date. When I double click on that column, the child.aspx page will pop-up. The pop-up page is a MODAL DIALOG which is the "showModalDialog("child.aspx")". Now, on that child.aspx dialog page,it has a calendar. If I will change the date then click update button. The parent.aspx page should automatically refresh without closing the child.aspx page, but it does not. There is an example here in codeproject which is exactly the same on my problem but it uses window.open not dialog. Behavior of window.open and dialog is not the same. You cannot call the window.opener.document.forms(0).submit(), it will generate error. Please help. Thanks.

      C# コードMicrosoft End User 2000-2008 「「「「「「「「「「「「「「「「「「「「「「「「「「「「 The best things in life are free 」」」」」」」」」」」」」」」」」」」」」」」」」」」」

      modified on Thursday, June 9, 2011 2:59 AM

      O Offline
      O Offline
      Orcun Iyigun
      wrote on last edited by
      #2

      In order to do that as you said you can use the opener method; You can change the href of the parent page by => window.opener.location.href = {URL}; If that doesnt work you can try reloading the page. You can reload the page in two different ways. This will return the form to its default values though => window.opener.location.reload(true); If you want to preserve form data , use the history method. window.opener.history.go(0);

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups