G
Guest
I have created a custom repeater that I am using in about 8 webforms in my current project. It has been working for several weeks with no issues. Today, as Visual Studio is prone to do, it dropped the event handler registration from the InitializeComponents method on just one page. After I realized what had happened, I aded the event handling registration back by selecting the event handler method in the properties window as I always do.
Now, the ItemCommand event will not fire for the repeater in that one page. I have deleted the repeater and re-added it from the toolbox, deleted it and re-added it by copying from another page, etc., etc. The repeater works in all other pages except this one. The repeater even has some custom events that are still working in all pages, including the problem page.
Has anyone seen anything like this? Any ideas how just one event on the page can not fire properly when it is properly registered? The code that registers it is the same across all pages:
this.ServerRepeater1.ItemCommand += new System.Web.UI.WebControls.RepeaterCommandEventHandler(this.ServerRepeater1_ItemCommand);
Now, the ItemCommand event will not fire for the repeater in that one page. I have deleted the repeater and re-added it from the toolbox, deleted it and re-added it by copying from another page, etc., etc. The repeater works in all other pages except this one. The repeater even has some custom events that are still working in all pages, including the problem page.
Has anyone seen anything like this? Any ideas how just one event on the page can not fire properly when it is properly registered? The code that registers it is the same across all pages:
this.ServerRepeater1.ItemCommand += new System.Web.UI.WebControls.RepeaterCommandEventHandler(this.ServerRepeater1_ItemCommand);