title: Delete data from calendar cell and database on button click in calendar cell
body: <p><img src="https://i.stack.imgur.com/7WFVs.jpg" alt="enter image description here"></p>
  
  <pre><code>Label lbl = new Label();
  lbl.BorderColor = System.Drawing.Color.Black;
  lbl.BorderStyle = BorderStyle.Double;
  lbl.BackColor = System.Drawing.Color.BlanchedAlmond;
  lbl.Text = eventname + "&lt;br/&gt;" + dt + "--" + dt1;
  e.Cell.Controls.Add(lbl);
  
  btn.Click += new System.EventHandler(this.btnCross_Click);
  e.Cell.Controls.Add(btn);
  
  public void btnCross_Click(object sender, EventArgs e)
  {
      string id = ((Button)sender).ID;
  }
  </code></pre>
  
  <p>My database fields are id, name , eventstartdate , eventenddate </p>
  
  <p><strong>How should i accomplish this</strong> my calendar control is in a UpdatePanel that is why this btnCross_Click is not firing</p>