title: Delete function for dynamic imagebutton
body: <p>I am creating a dynamic ImageButton and hanging a method on it.
  By clicking on this ImageButton my method should delete a product. Вut nothing happens when the button is pressed. Where in this &quot;chain&quot; the error occurred?
  There are no errors in the developer console in the browser (F12).
  P.S. I use .NET Framework 4.8, EntityFramework 6</p>
  <p>Dynamic ImageButton:</p>
  <pre><code>ImageButton lnkDelete = new ImageButton
  {
      ID = &quot;del&quot; + cart.ID,
      ...
  };
     //OnClick Event
     lnkDelete.Click += Delete_Item;
  </code></pre>