Update window behind lightbox.js window when lightbox.js window is closed

On my site I am using lightbox.js to open other urls on my site in a window above where the url is linked. The user enters in data, clicks a asp.net button, the data is updated and the window closes. Is there anyway to update the page that the lightbox window was opened on top of from the lightbox window?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Use the window.parent.refresh();
addicktzAuthor Commented:
Where would I put that at?

I tried using the following line of code at the end of the button click event from the child page and it didnt refresh the parent page, any ideas?

ClientScript.RegisterStartupScript(GetType(),"script","window.parent.refresh();", true);

ClientScript.RegisterClientScriptBlock(this.GetType(),"script","window.opener.document.forms[0].submit();", true);

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

addicktzAuthor Commented:
that didn't work ethier, any other ideas?
Hum, very strange.

Try this instead

I assume that you're executing all code i gave before you send the close window command.

addicktzAuthor Commented:
I commented out the close window line and tried the different lines you gave me, the window doesn't close and the parent window does not update, any ideas?
addicktzAuthor Commented:
ok, I got it, thank you for your help! =]

I put this on the child page head

 <script type="text/javascript">
 function showMessage(pstrMessage)
    self.parent.document.forms[0].submit();self.parent.myLytebox.end(); return false;

and on the child page submit postback i put

Page.ClientScript.RegisterStartupScript(GetType(), "script", "showMessage('Hello');", true);
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.