Hi everyone,
I suspect this topic has been touched upon before, from various angles, however as I couldn't find a satisfying answer I'll go ahead and post it again. Bare with me if you've seen this before:
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:TextBox ID="TextBox1" runat="server" Width="80">
</asp:TextBox>
<asp:Panel ID="Panel1" runat="server" CssClass="popupControl">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:ImageButton ID="btnImage" runat="server" />
<asp:LinkButton ID="btnLink" runat="server" Text="Click me!">
</asp:LinkButton>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Panel>
<ajaxtoolkit:PopupControlExtender ID="PopupControlExtender1" runat="server" PopupControlID="Panel1"
Position="Bottom" TargetControlID="TextBox1">
</ajaxtoolkit:PopupControlExtender>
</form>
The behaviour I experience with the latest Ajax release (v1.0) and the latest AjaxControlToolkit is this:
- When the popup panel appears, pressing the ImageButton will perform a full postback (not async) even though it resides in an UpdatePanel.
- The LinkButton works as expected, ie. performs an async postback.
- After pressing the LinkButton once, the ImageButton then performs async postbacks, but its handler is never called.
Now some people have suggested setting the UseSubmitBehavior property to false for Buttons, which makes sense, but will not work for ImageButtons.
Is there a resolution for this issue, or any ideas for a workaround?
Thanks