如何解决显示“正在加载”消息,直到 asp:HtmlIframe 内容完全加载?
我的页面上有一个 Asp.net HtmlIframe 控件,如下所示:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<script src="helper.js"></script>
<title>Study Viewer</title>
<style type="text/css">
.second-row {
position: absolute;
top: 0px;
left: 0;
right: 0;
bottom: 0;
}
.second-row iframe {
display: block;
width: 100%;
height: 100%;
border: none;
}
</style>
</head>
<body>
<form id="form1" runat="server" width="100%" height="100%">
<div class="second-row" runat="server">
<asp:HtmlIframe ID="cp" runat="server"></asp:HtmlIframe>
</div>
</form>
</body>
</html>
HtmlIframe 的来源设置在代码隐藏的页面加载中。
在 iframe 的内容完全加载之前,我似乎无法弄清楚如何显示“正在加载”消息。有人能帮我解决这个问题吗?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。