Search code examples
c#asp.netpostback

Disable postback at click on a button


I want do disable postback after clicking a <asp:Button>. I've tried to do that by assigning onclick="return false", but in the button doesn't work.

How can I fix this?


Solution

  • I could fix that using an UpdatePanel which includes the implicated controls/elements.