Click here to Skip to main content
15,915,076 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
here update panel event fires twice as i clicked on button
and record inserted twice why it is happening donno

please help




XML
<asp:UpdatePanel ID="upanelfolder" runat="server" UpdateMode="Conditional">
                         <ContentTemplate>

<asp:Label ID="Label1" runat="server" Text= <%=prod_name %>
XML
</ContentTemplate>
                          <Triggers>
                              <asp:AsyncPostBackTrigger ControlID="btn" EventName="Click" />
                          </Triggers>
                      </asp:UpdatePanel>



<asp:Button ID="btn" runat="server" OnClick="btn_Click" Text="Add" />

code behind
VB
Protected Sub btn_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn.Click
     //insert query
    End Sub
Posted
Updated 10-Nov-11 18:26pm
v2

1 solution

Hi,

I'm facing same issue. please help me. how to you resloved this.

Thanks
Gopal Singh
 
Share this answer
 

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