按钮需要太多时间才能加载到ASP.Net中

编程入门 行业动态 更新时间:2024-10-22 17:28:14
本文介绍了按钮需要太多时间才能加载到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中

本文发布于:2023-11-26 20:12:18,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1635024.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:太多   按钮   加载   时间   Net

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!