Curtis
Curtis

Reputation: 103348

UpdatePanel not working for simple Button

I have the following markup:

<Asp:updatepanel id="up" runat="server">
 <contenttemplate>
  <asp:Button id="btn" runat="server" text="test" />
 </contenttemplate>
</Asp:updatepanel>

However, this is forcing a full postback.

I've created this test because a more complicated UpdatePanel wasn't re-rendering without posting back, but this simple test doesn't work as it should do either.

I've also tried declaring triggers, even though I don't believe you have to:

<Asp:updatepanel id="up" runat="server">
<contenttemplate>
 <asp:Button id="btn" runat="server" text="test" />
</contenttemplate>
<Triggers>
    <asp:AsyncPostBackTrigger ControlID="btn" EventName="Click" />        
</Triggers>
</Asp:updatepanel>

However, this is also not working.

Upvotes: 1

Views: 2523

Answers (1)

IUnknown
IUnknown

Reputation: 22448

Check ScriptManager's EnablePartialRendering and remove it if it presented or set it to true

Upvotes: 1

Related Questions