ItemCommand not firing on first click in Repeater or GridView
问题 This has been driving me crazy for 2 days now - hope someone has seen this before. I have this issue where the first click of a control within a repeater or grid view fails to fire the ItemCommand event, all subsequent clicks work. The controls are being loaded into a placeholder on Base.aspx like so private void LoadUserControl() { string controlPath = LastLoadedControl; if (!string.IsNullOrEmpty(controlPath)) { ph.Controls.Clear(); UserControl uc = (UserControl)LoadControl(controlPath); ph