Change this:
Code:
Response.Write("<script>window.opener.location.reload();</script>");
Response.Write("<script>parent.addprojwindow.hide();</script>");
Response.Write("<script>parent.addprojwindow.close();</script>");
to:
Code:
Response.Write("<script>parent.window.location.reload();</script>");
That should at least reload the top page. If you still need those others, then they have to be done first:
Code:
Response.Write("<script>parent.addprojwindow.hide();</script>");
Response.Write("<script>parent.addprojwindow.close();</script>");
Response.Write("<script>parent.window.location.reload();</script>");
I'm just going by your word that you get an error, which should mean that the code is actually getting executed, or is attempting to execute.
If you want more help:
Please post a link to a page on your site that contains the problematic code so we can check it out.
Bookmarks