I have a page that has a DataGrid on it. Sorting is enabled on the grid. Now with that, here is my problem. Step by Step.

1) I click on a heading to sort the grid.
2) I click on a link that pop's a new window using the following java script

window.open(POPurl+'?'+strVal,'NewWindow','height=320,width=500,status=no,toolbar=no,menubar=no,loca tion=no,resizable=yes,scrollbars=no');

3) Finsh work on Popup window and click close which runs the following code behind code.

Response.Write("<script>window.opener.location.reload();window.close();</script>")

4) I then receive this error

"The page cannot be refreshed without resending the information.
Click Retry to send the information again, or click Cancel to return to the page that you were trying to view"

5) I click Retry and the page with the grid displays fine.

Here is my question, how do I get rid of the error in step 4? It only happens if I sort the grid before going to the pop up window. The page does need to be refreshed when I close out of the pop up window.

Thanks