Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
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>
Posted 19-Nov-12 1:08am
Edited 19-Nov-12 7:30am
Tim Corey85.8K
v2
Comments
Krunal R at 19-Nov-12 7:14am
   
Show your code here...
mayur mkt at 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 at 19-Nov-12 7:49am
   
And code-behind is? Please use "Improve question" link to insert this code inside original question text
Gregory.Gadow at 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 at 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

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
mayur mkt at 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)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 359
1 _Amy 230
2 OriginalGriff 200
3 Manfred R. Bihy 200
4 Peter Leow 180
0 OriginalGriff 7,495
1 Sergey Alexandrovich Kryukov 6,402
2 Maciej Los 3,849
3 Peter Leow 3,568
4 CHill60 2,702


Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 19 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100