I have a few buttons on a web page.
I have an update panel and I have 2 triggers that reference button 1 and 2 outside my update panel.
When I click on button 1 and 2 I want the update panel to "update" with content without a whole page refresh.
This seems simple enough but when I run I get the following error:
A control with ID 'btn1' could not be found for the trigger in UpdatePanel 'updateSomething'.
Here is my code.
<asp:button ID="btn1" Text="press me" Click="btn1_Click></asp:button>
<asp:button ID="btn2" Text="press me2" Click="btn2_Click></asp:button>
<asp:UpdatePanel ID="updateSomething" UpdateMode="Condtional" runat="server">
<asp:AsyncPostBackTrigger ControlID="btn1" runat="server" EventName="Click" />
View Complete Post