I’ve added a ScriptManager and UpdatePanel in my user control but now the page is not posting back, at all. This is the only instance of a ScriptManager on the page. I’m using VS 2010 and my project is compiled with the 4.0 framework. EnablePartialRendering is set to true in the ScriptManager control. Could I be missing an assembly reference/registration, somewhere?
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:UpdatePanel ID="UpdatePanel1" runat="Server" UpdateMode="Conditional">
<ContentTemplate>
<asp:ImageButton ID="SignUp" runat="server" AlternateText="SignUp"
class="tips_button" ImageUrl="/~/myimage.ashx"
onclick="SignUp_Click" ToolTip="Find" />
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="SignUp" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
Try changing
UpdateModetoAlwaysinstead ofConditional. Also, for something this simple you shouldn’t need to specify any triggers. If no triggers are specified, the control assumes that everything should be asynchronous.I would also check to make sure that required field validators aren’t interfering with the postback. To test this, set the
CausesValdiationproperty of theImageButtonto false.