Click here to Skip to main content
15,889,833 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
My problem is that the button click is not working with the update panel. Without using the update panel it works well. How can I solve the problem?

I have also tried to place whole tools inside the update panel. It didn't help me.
Posted
Updated 29-Jul-12 22:23pm
v2
Comments
Vani Kulkarni 30-Jul-12 4:31am    
Please share the code where you are facing the issue.
There can be so many cause for this.
So, we need to check your code to find out what are you missing in that.
Please post your complete codes by clicking on "Improve question" link.
Thanks
Tadit.
sandeep nagabhairava 30-Jul-12 5:42am    
we con't work on this question, please share your code...

1 solution

You need a trigger eg
<asp:UpdatePanel runat="server" ID="UpdatePanel2" UpdateMode="Always" Visible="false">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="button1" EventName="Click" />
</Triggers>
<ContentTemplate>
//your code
<asp:Button ID="Button1" runat="server" Text="Click me" align="center"
OnClick="btn_Click" CssClass="Button" />
</ContentTemplate>
</asp:UpdatePanel>



this worked for me
 
Share this answer
 
Comments
Well this can be one problem. But we don't know the exact problem what the OP is facing ?

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