ASP.NET Page with multiple custom controls implementing IPostBackEventHandler
问题 I am having an ASP.Net Page which contains multiple controls which implement the IPostBackEventHandler interface. The SIMPLIFIED VERSION of the code is given below: public partial class WebForm1 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { //Custom Control MyTextBox mytxt = new MyTextBox(); mytxt.ID = "mytxt"; mytxt.TextChange += mytxt_TextChange; this.Form.Controls.Add(mytxt); //Custom Control MyButton mybtn = new MyButton(); mybtn.ID = "mybtn"; mybtn.Click +