title: imagebutton onclientclick and onclick events
body: <p>how to add onclentclick and onclick events from code behind to image button. I wrote some code it shows confirm message for onclientclick event but not firing onclick event.</p>
  
  <p>my code is as following..</p>
  
  <pre><code>ImageButton img = new ImageButton();
  img.ID = "img1";
  img.Visible = true;
  img.OnClientClick = "alert(confirm('Are you sure you want to delete folder with files ?'));";
  img.Click += new ImageClickEventHandler(img_Click);
  img.ImageUrl = "~/images/admin/remove.png";
  </code></pre>
  
  <p>Event's code is :</p>
  
  <pre><code>void img_Click(object sender, ImageClickEventArgs e)
  {
   //code what i want to implement   
  }
  </code></pre>