postbacks add a lot of weight to your page and you don't always need them. Find out when you can do without them and how to use ASP.NET without paying the postback price.
Published in ASP.NET on Sunday, February 8th, 2009
Step 1: Create a WebControl that implements the IPostBackEventHandler interface. In my example I’ve created a CustomButton control that is a HTML <span> element that acts like a real button by trigging a postback and firing a Click event. public class CustomButton : WebControl, IPostBackEventHandler { public CustomButton() { } public void RaisePostBackEvent(string eventArgument) { [...]
Published in Server controls on Monday, October 24th, 2005