title: Link OnClick code behind does not execute when set as ModalPopupExtender TargetControlID
body: <p>I did a lot of searching and cannot figure this out. </p>
  
  <p>I have a ModalPopupExtender pop-up that I want to display when the user clicks a link DoSomething. The pop-up has a dropdown control that I then want to populate on the fly when the user asks to open the dialogue. This needs to happen server side via the code behind. Currently I am trying to do it via an OnClick event on the link but as soon as the link is tied to the ModalPopupExtender the link OnClick code is not executed.</p>
  
  <p><strong>Code snippet:</strong></p>
  
  <pre><code>&lt;asp:LinkButton ID="lnkDoSomething" runat="server" onClick="lnkDoSomething_Click"&gt;Do Something&lt;/asp:LinkButton&gt;
  &lt;asp:ModalPopupExtender ID="mpelnklnkDoSomething" runat="server" BackgroundCssClass="modalBackground"
      DropShadow="true" PopupControlID="lnkDoSomething"
      PopupDragHandleControlID="pnlDragHandlerForlnkDoSomething"   
      TargetControlID="lnklnkDoSomething"&gt;&lt;/asp:ModalPopupExtender&gt;
  </code></pre>
  
  <p>The problem is as soon as I set the ModalPopupExtender to the link the OnClick code does not execute. This obviously is by design but it doesn't make sense to me (naive) as if the user clicks the link the OnClick code should be executed.</p>
  
  <p>Any ideas why this is not supported and what the correct solution is?</p>