Click here to Skip to main content
15,894,180 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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:
ASP.NET
<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>
Posted
Updated 19-Nov-12 7:30am
v2
Comments
[no name] 19-Nov-12 7:14am    
Show your code here...
mayur mkt 19-Nov-12 7:32am    
<form id="frmhlderrpt" runat="server">
<div id="dvtop" align='center' style='width:100%;position:relative;font-weight:bold;top:30px;'>

<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>
Timberbird 19-Nov-12 7:49am    
And code-behind is? Please use "Improve question" link to insert this code inside original question text
Gregory Gadow 19-Nov-12 13:43pm    
Is the delay occuring when the page first loads, or after the button is clicked? At a glance, the issue is how long it takes your Javascript method to assemble the PDF and deliver it. Addressing that has nothing at all to do with ASP.Net.
mayur mkt 20-Nov-12 1:32am    
Delay is occuring each time not only the page first loads and also after button clicked, I am not generating pdf in javascript..

1 solution

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.
 
Share this answer
 
Comments
mayur mkt 20-Nov-12 1:34am    
yes I don't have an issue with the button being clicked..and there is nothing to show in code..I will try after removing css and will get back to you

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900