G
Guadala Harry
I have a frameset aspx page that enables users to upload photos. One
frame/page shows a thumbnail list of prevously-uploaded images, and the
other frame/page includes the controls that enable selecting and uploading
additional photos. After uploading a file, the list of thumbnail images
needs to get refreshed to show the newly uploaded picture. This is
accomplished by using the following code:
string scriptString = "<script
language=JavaScript>parent.thumbFrame.location.reload(true)</script>";
if(!this.IsClientScriptBlockRegistered("clientScript")){
this.RegisterStartupScript("clientScript", scriptString);
This setup works great - but only as long as the frameset is opened by
itself (i.e., not as a modal dialog). When the frameset is opened as a modal
dialog (from client-side JavaScript using window.showModalDialog()), the
page in thumbFrame does not reload. It is as if the JavaScript registered
through RegisterStartupScript is not executed on the client.
How can I get the thumbFrame to reload when the frameset has been opened as
a modal dialog?
Thanks!
frame/page shows a thumbnail list of prevously-uploaded images, and the
other frame/page includes the controls that enable selecting and uploading
additional photos. After uploading a file, the list of thumbnail images
needs to get refreshed to show the newly uploaded picture. This is
accomplished by using the following code:
string scriptString = "<script
language=JavaScript>parent.thumbFrame.location.reload(true)</script>";
if(!this.IsClientScriptBlockRegistered("clientScript")){
this.RegisterStartupScript("clientScript", scriptString);
This setup works great - but only as long as the frameset is opened by
itself (i.e., not as a modal dialog). When the frameset is opened as a modal
dialog (from client-side JavaScript using window.showModalDialog()), the
page in thumbFrame does not reload. It is as if the JavaScript registered
through RegisterStartupScript is not executed on the client.
How can I get the thumbFrame to reload when the frameset has been opened as
a modal dialog?
Thanks!