• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1533
  • Last Modified:

Refresh Parent Window

I don't know if this is the right area or if it would be html, but in either case this is my problem. I have an asp page with two iframes with forms in them and what I want to do is after the user submits one of the forms I want to refresh the parent window (the one containing the two iframes) because there will be changes reflected in it.

I do not know how to do this. Any help would be appreciated. Thanks.
1 Solution
Saqib KhanSenior DeveloperCommented:
<a href="#" onClick="parent.document.location=parent.document.location">Refresh</a>
that will refresh the Main Parent Window.

so when you dont writing to database/Form Submit  you can put this line right under it....


If you just want the form in the iframe to submit such that the result of the submission will fill the parent window (instead of just the iframe), you can try something like:

    <form ... target="_parent">


    <form ... target="_top">
fisherbrsnch00Author Commented:
adilkhan, that works great. I had a little trouble because I was attempting to response.redirect after the
<Script>  parent.document.location=parent.document.location </Script>, but once I got rid of it everything is perfect. Thank you so much!!

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now