按钮需要太多时间才能加载到ASP.Net中 [英] Button taking too much time to load in ASP.Net

查看:55
本文介绍了按钮需要太多时间才能加载到ASP.Net中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尊敬的先生

我有一个网页,页面上有一个用户控件和一个按钮...

我正在该页面上显示一些数据.

但是问题在于,在显示全部数据后,按钮将在30到40秒后加载,ie的进度条也未完成

代码OP发表在评论中:

Dear Sir

I have a web page and i have one user control and one buttone on page...

I am displaying some data on that page.

But problem is that button is loading after almost 30 to 40 seconds event after whole data displayed and progress bar of ie is also does not complete

Code Posted in comments by OP:

<form id="frmhlderrpt"  runat="server">
        <div id="dvtop" align='center' style='width:100%;removed:relative;font-weight:bold;removed30px;'>
        
            <table align="center">
                <tr align="center">
                    <td align="center">
                        <asp:Button ID="btnpdf" CssClass="btnsmall" runat="server" Text="GeneratePDF" OnClientClick="javascript:pdfflag();" />
                    </td>
                </tr>
            </table>
            <table align="center">
                <tr align="center" id="divprocess" style="display:none;">
                    <td align="center" style="height: 20px">
                        <img id="Img1" src='../Images/Processing.gif'>Please wait
                            while your request is being processed...
                    </td>
                </tr>
            </table>
        </div>

推荐答案

此按钮将立即显示,为什么不显示?我认为您在单击按钮时没有问题,或者发布了它运行的代码.您的按钮将显示文本,除非CSS中没有图形,否则显示缓慢,这是服务器速度的问题.除非没有其他代码,否则您不会显示给我们,但是即使如此,我仍然不明白为什么它会阻止该按钮立即显示为文本.
This button will show immediately, why would it not ? I assume you don''t have an issue with the button being clicked, or you''d post the code that it runs. Your button shows text, unless there''s a graphic in the CSS, and if that is slow, that''s a server speed issue. Unless there''s other code you''re not showing us, but even then, I don''t see why it would stop this button from showing with text right away.


这篇关于按钮需要太多时间才能加载到ASP.Net中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆