Click here to Skip to main content
15,501,342 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm using update panel within my fancybox login div but it takes 20 secs to respond on Button click
how to resolve his issue plz help me anyone...


ASP.NET
<div style="display: none;"><div id="001" style="width:400px;height:275px; overflow:hidden; background-image:removed(image/bg.jpg.pagespeed.ce.hBQipZqWVe.jpg);">
   <asp:ScriptManager ID="ScriptManager1" runat="server">
      </asp:ScriptManager>
      
  <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
  <ContentTemplate>
  <table width="400px" height="110px" class="align" style="font-family: Arial, Helvetica, sans-serif; color: #000000; font-size: medium">
  <br />
   <center>
       
        <font color="Green">   <h1>
               Log in</font></h1></center>
   
    
<font style="font-family: Arial, Helvetica, sans-serif; font-size:15px; color:black;"> Email:</font> <fieldset>   <asp:TextBox ID="TextBox1" runat="server"  Width="200px" Height="30px"></asp:TextBox></fieldset>  
<font style="font-family: Arial, Helvetica, sans-serif; font-size:15px; color:black;"> Password: </font>  <fieldset><asp:TextBox ID="TextBox2" runat="server"  TextMode="Password"  Width="200px" Height="30px" ></asp:TextBox></fieldset>
      <asp:Button ID="Button2" runat="server"  Text="Login" onclick="Button2_Click" CssClass="sub5"/>  
    <br />
    <br />
    <asp:Label ID="Label1" runat="server"></asp:Label>
    
   
   </table>
   </ContentTemplate>
<Triggers>
 <asp:AsyncPostBackTrigger ControlID="Button2"
 EventName="Click" />
</Triggers>
   </asp:UpdatePanel>
    
   
  
   
   </div></div>
Posted
Comments
Keith Barrow 24-Oct-12 5:35am    
Can you add the code-behind please, the ASP doesn't really tell us what is happening before render.

1 solution

since your button is inside the UpdatePanel, I am tempted to think that it would do an async post back by default so you don't have to specify any triggers. You can set the ChildrenAsTriggers property to "true" to cause a postback when the button inside the updatepanel is clicked.
 
Share this answer
 
Comments
I.explore.code 24-Oct-12 6:41am    
ofcourse!

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