F
Fernando Chilvarguer
Hi,
I've been trying to figure this one out for a while and I'm stalled.
Here's my scenario:
- a Parent window with a datagrid on it. The datagrid has pagination enabled
and has an "Edit" link for each record.
- Once someone clicks on the "Edit" link, a child window pops-up. The user
edits the data and submits the form. All the server code is executed and
then I need to refresh the contents of the parent window and close the child
window. The following 2 lines of code do that:
Response.Write("<script>opener.document.location.reload();</script>");
Response.Write("<script>window.close();</script>");
BUT by using this method, IE 6.0 pops-up a warning message saying "the page
cannot be refreshed unless data is submited to the server, click RETRY to
continue". Basically warning you that information is going to be posted to
the server.
Is there any way to get the Client Window to refresh the Parent Window
WITHOUT this warning message popping-up?
(The reason for the "post" being triggered is due to the pagination being
enabled on the data grid, requesting the next page posts the data back to
the server).
THANKS!
Fernando
PS: Same thing happens on Firefox.
I've been trying to figure this one out for a while and I'm stalled.
Here's my scenario:
- a Parent window with a datagrid on it. The datagrid has pagination enabled
and has an "Edit" link for each record.
- Once someone clicks on the "Edit" link, a child window pops-up. The user
edits the data and submits the form. All the server code is executed and
then I need to refresh the contents of the parent window and close the child
window. The following 2 lines of code do that:
Response.Write("<script>opener.document.location.reload();</script>");
Response.Write("<script>window.close();</script>");
BUT by using this method, IE 6.0 pops-up a warning message saying "the page
cannot be refreshed unless data is submited to the server, click RETRY to
continue". Basically warning you that information is going to be posted to
the server.
Is there any way to get the Client Window to refresh the Parent Window
WITHOUT this warning message popping-up?
(The reason for the "post" being triggered is due to the pagination being
enabled on the data grid, requesting the next page posts the data back to
the server).
THANKS!
Fernando
PS: Same thing happens on Firefox.