title: Pass client id to code behind
body: <p>Is there some way to pass the unique client id to codebehind? I have a imagebutton in a gridview and I wish to do something like this:</p>
  
  <pre><code>&lt;asp:ImageButton ID="imbView" runat="server" ToolTip="View details" ImageUrl="~/css/images/View.png" CommandName="wView" CommandArgument='#&lt;%=imbView.ClientID%&gt;' /&gt;
  </code></pre>
  
  <p>On debugging though I see that my <code>CommandArgument</code> is <code>#&lt;%=imbView.ClientID%&gt;</code>..</p>
  
  <p>To specify: I want to pass something that uniquely identifies generated elements (and I thought that the ClientID would be a good way to identify it).</p>