Reputation: 905
The ImageButton works, but it doesn't update the update panel, hence showing no changes at all.
This is my Update Panel code:
<asp:UpdatePanel ID="UPConfig" runat="server" UpdateMode="Conditional">
<ContentTemplate >
STUFF
<asp:ImageButton ID="ModT" runat="server" ImageUrl="images/config.png" width="25px" height="25px"/>
STUFF
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="ModT" EventName="Click"/>
</Triggers>
</asp:UpdatePanel>
I can't seem to add the AutoPostBack="true" property either. Can this be done this way?
Upvotes: 0
Views: 1748
Reputation: 4190
Try...
<asp:AsyncPostBackTrigger ControlID="ModT" EventName="Click" />
I'm pretty sure you've got to tie in your trigger to an event, in this case you're clicking on the object, so tie it into the click event, like above. Everything else looks ok, let us know otherwise.
Upvotes: 1