Click here to Skip to main content
15,922,533 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have use update panel to update partial of the page not all. However, the button inside update panel stops working and this button inserts data to database


please help

What I have tried:

<asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<contenttemplate>
.
.
. other lines of the code
.
.

<asp:Button ID="btnUpload" runat="server" Text="Upload" onClick="Upload" ValidationGroup="Click"/>


<triggers>
<asp:AsyncPostBackTrigger ControlID="btnIdea" EventName="Click" />
Posted
Updated 26-Jul-16 1:33am

1 solution

If you are referring to your btnUpload, then you should use that as the ControlID for your AsycPostBackTrigger:

ASP.NET
<asp:asyncpostbacktrigger controlid="btnUpload" eventname="Click"  />


Also, make sure that validation is successful because you are setting ValidationGroup for your btnUpload.
 
Share this answer
 
v2
Comments
Member 12618369 26-Jul-16 7:45am    
what is xmlns:asp="#unknown" please clarify it
and I have referred to btnUpload in ControlID
Vincent Maverick Durano 26-Jul-16 7:53am    
xmlns:asp="#unknown" is a format issue in the editor. You can ignore it.

I've updated the code. :)

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