reapter绑定数据时,加载时给loading动画,完成显示数据 如题,怎么实现。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 ajax,你可以使用微软的ajax组件,在System.Web.Extentions里,把空间放置在类似<updatepanel>这样的容器中... <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <Triggers> <asp:AsyncPostBackTrigger ControlID ="Button1" EventName ="Click" /> </Triggers> <ContentTemplate> <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> </ContentTemplate> </asp:UpdatePanel> <asp:UpdateProgress ID="UpdateProgress1" runat="server"> <ProgressTemplate> <span style =" font-size:12px">数据更新中......</span> </ProgressTemplate> </asp:UpdateProgress> <asp:Button ID="Button1" runat="server" Text="Button" Width="143px" OnClick="Button1_Click" />或 <asp:updateprogress ID="UpdateProgress1" runat="server"> <progresstemplate> <span lang="zh-cn">数据正在读取中..请稍后!!!</span> <input type="button" value ="取消" onclick="stop();" /> </progresstemplate> </asp:updateprogress> 还这么麻烦,最简单的是,在页面开始加载,让 LOADING显示,控件加载完毕就关闭就可以了比如protected void Page_Load(object sender, EventArgs e) {绑定数据控件隐藏LOADING } 一般的页面都是在服务器处理完请求,才发送到客户端,要全部加载完才显示的。但AJAX例外。 ASP.NET调用Oracle存储过程的疑问??? 谁能手算出来,我服他!! 排队程序 JavaScript读取自定义控件属性 请问高手们有关Thread.Sleep()方法的问题 asp.net2.0中关于showModalDialog问题! datagrid中对某一列进行统计怎么做? asp.net chart 控件使用问题 在线等候:一个小问题,望请多多帮助小弟,数据库insert时出错! 谁有vs.net的序列号? 关于延迟执行中遇到的问题 函数参数是自定义变量类型,判断参数是何种类型(整形,字符型,对象型?),如何判断呢?
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<Triggers>
<asp:AsyncPostBackTrigger ControlID ="Button1" EventName ="Click" />
</Triggers>
<ContentTemplate>
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdateProgress ID="UpdateProgress1" runat="server">
<ProgressTemplate>
<span style =" font-size:12px">数据更新中......</span>
</ProgressTemplate>
</asp:UpdateProgress>
<asp:Button ID="Button1" runat="server" Text="Button" Width="143px" OnClick="Button1_Click" />
或
<asp:updateprogress ID="UpdateProgress1" runat="server">
<progresstemplate>
<span lang="zh-cn">数据正在读取中..请稍后!!!</span>
<input type="button" value ="取消" onclick="stop();" />
</progresstemplate>
</asp:updateprogress>
比如protected void Page_Load(object sender, EventArgs e)
{
绑定数据控件
隐藏LOADING
}
但AJAX例外。