Something that bugged me for ages in was how to prevent an button from automatically doing a postback.

To prevent a postback occuring simply make the OnClientClick event return false like this:

<asp:Button ID="button" runat="server" OnClientClick='return false' />
Need to find a lawyer for your business? Get in touch with my company Lexoo and we'll find you a great one for free.