Reload IFrame from Code Behind (when aspx opened as modal dialog)

G

Guadala Harry

I have an aspx page that opens as a modal dialog. The aspx contains two
IFrames (ID = thumbFrame and mainFrame). From the code-behind of the page
that loads in mainFrame I want to cause the page that appears in thumbFrame
to reload.

I have the following code that works fine with a normal frameset (no
IFrames) that is NOT opened as a modal dialog. It fails with IFrames. What
needs to change now that I have replaced the frameset with IFrames?

string scriptString = "<script
language=JavaScript>parent.thumbFrame.location.reload(true)</script>";
if(!this.IsClientScriptBlockRegistered("clientScript")){
this.RegisterStartupScript("clientScript", scriptString);
}

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top