This is a problem encountered in the ASP. NET MVC project, assuming that the parent page has an IFRAME
<iframe id="sth" src="" scrolling="no" frameborder="0" width="100%" height= " 100% "></iframe>
The src attribute of the IFRAME triggered by a button on the parent page points to a URL:
var url = "/somecontrollername/someactionname";
$ ("#sth"). attr ("src", url);
By someactionname This action-rendered view, called a sub-page. When the parent page button is first triggered to load a child page, the content of the child page is fully displayed, and then the parent page button is triggered again, but the content of the child page is not displayed.
The best solution ...
Perhaps, what happens when a child page is loaded and then refreshed again? Try the following on the sub-page:
< 0) {
window.location = Window.location.href + '? loaded=1 '
}
});
Problem Solving! But, why? :-P
Resolving the contents of an IFRAME load sometimes shows that it is sometimes not displayed