Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9206409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:10:08+00:00 2026-06-18T00:10:08+00:00

Working in ASP.NET. I have a main page with an iFrame inside it. The

  • 0

Working in ASP.NET. I have a main page with an iFrame inside it. The main page lists payor names, the iFrame lists the details of the selected payor. On the iFrame page I have a link button that launches a modal dialog window and allows the user to copy an existing payor to a new payor. When I close the modal dialog window I want to refresh the main page to include the newly added payor.

I read this: asp.net Refresh base page from iframe
but it is not working for me.

My iFrame aspx page has the following:

function RefreshParent() {
window.parent.location.href = window.parent.location.href;
}

The iFrame code-behind page has the following in the Page_Load:

ClientScript.RegisterStartupScript(Me.GetType, "RefreshParent", "<script type=text/javascript>RefreshParent();</script>", True)

When I close the modal dialog window the parent page is NOT refreshed, but this appears in the bottom left of the screen, under the iFrame page:

//]]>

The RegisterStartupScript only happens under certain conditions, but I’ve stepped through it in debug and confirmed those conditions are met, and that line of code is executing.

Any help would be much appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T00:10:09+00:00Added an answer on June 18, 2026 at 12:10 am

    Figured it out. I had to change the code-behind page to this:

    ClientScript.RegisterStartupScript(Me.GetType, "RefreshParent", "<script type=text/javascript>RefreshParent();</script>", False)
    

    Now the screen refreshes correctly and the //]]> does not appear.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on an asp.net/C# web application, In the main page: I have
I am working on a web application (asp.net mvc3) I have a Main div.
I am working on asp.net using c#. I have one master page with 3
please help me I'm working on an asp.net application have a main site and
I am working on asp.net application and I have generated entity model (edmx) from
I am working on asp.net application and I have an update panel like this:
Hi I have been working on asp.net for a while. I am wondering if
I am working on ASP.Net 2.0 website and I have a strange problem. First
So I am working with ASP.Net MVC + jQuery autocomplete and I have a
I am working on asp.net 3.5 application. I have a datagrid. I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.