您是否看到下面的代码有问题?我希望我的图像在打开页面后立即显示,但仅在报告运行后才打开。如果这看起来完整,那么JavaScript可以帮助?请告诉我。谢谢。为什么我的图像不显示?
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SelectionReport.aspx.cs" Inherits="Geocortex.Essentials.WebFramework.SelectionReportPage" Culture="auto" UICulture="auto" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title><asp:Literal meta:resourcekey="Title1" runat="server" /></title>
</head>
<body>
<form id="form1" runat="server">
<p>
<asp:Image ID="Image1" runat="server" ImageAlign="Left"
ImageUrl="~/Images/Loading.gif"
style="z-index: 1; left: 254px; top: 15px; position: absolute" />
</p>
<gcx:SelectionReportViewer ID="SelectionReportViewer" runat="server" />
</form>
</body>
我还没有任何运气。当SelectionReportViewer从窗体中移除时,我可以看到图像,但显然我需要该控件来创建报告。有没有人有任何关于如何在SelectionReportViewer参与之前让图像显示出来的明智想法?该控件确实有一些事件:数据绑定,处置,初始化,加载,预渲染,卸载 – Josh 2010-05-02 16:16:27
有人可以帮我解决这个问题吗?通过进一步测试,这是我到目前为止:我的ASPX页面包含一个form1,它有Image1和一个ReportViewer控件。但是在ASPX被加载之前,SelectionReport.cs会经历一个创建报表的漫长过程,并且在这里我需要在报表生成之前生成一个Loading.gif。思考? – Josh 2010-05-04 15:13:50