I encountered the same problem when converting a site from .net 1.1 to 3.5. As in the first post on some pages, the buttons work fine, but on others they don’t. There is no common ground between pages that do not work.
I tried to change the code so that it matches the pages that work, changing the usage statements, changing the autowireevent property that should be specified, and set it to true by deleting the system keyword where it is not needed. I also tried to specifically add events to pageload as with:
this.dlCVs.ItemDataBound += new System.Web.UI.WebControls.DataListItemEventHandler (this.dlCVs_ItemDataBound); this.dlCVs.ItemCommand += new System.Web.UI.WebControls.DataListCommandEventHandler (this.dlCVs_ItemCommand); this.btnSubmit.Click += new System.EventHandler(this.btnSubmit_Click); this.btnHome.Click += new System.EventHandler(this.btnHome_Click);
Interestingly, despite the fact that the above itemdatabound event really works, so only buttons that don't work don't work.
So far, the only solution I've come across is to delete the page, and then recreate it and copy it in separate sections of the code. If I copy the code into one large block, this solution does not work.
source share