Adding javascript to a link's OnClientClick property while binding a repeater
<p>I'm trying to get this working but no success:</p>

<pre><code>&lt;asp:Repeater ID="Repeater1" runat="server" OnItemCommand="btnDeleteFamily_Click"&gt;
 &lt;HeaderTemplate&gt;
    &lt;table&gt;
       &lt;tr&gt;
          &lt;th width="90" valign="top"&gt;&lt;%=getTag("name")%&gt;&lt;/th&gt;
       &lt;/tr&gt;
 &lt;/HeaderTemplate&gt;
 &lt;ItemTemplate&gt;
       &lt;tr&gt;
       &lt;td&gt;&lt;%#Eval("chrname")%&gt;&lt;/td&gt;
           &lt;asp:LinkButton ID="btnDeleteFamily" CssClass="fRight ui-icon ui-icon-trash" runat="server" CommandName="delete" CommandArgument='&lt;%#Eval("idmember")%&gt;' OnClientClick='return confirm("&lt;%= getTag("deletefamilymemberdialog") %&gt;")' Text="" ValidationGroup="delete_family" /&gt;
       &lt;/td&gt;
       &lt;/tr&gt;
  &lt;/ItemTemplate&gt;
  &lt;FooterTemplate&gt;
     &lt;/table&gt;
  &lt;/FooterTemplate&gt;
&lt;/asp:Repeater&gt;
</code></pre>

<p>When clicking on the btnDeleteFamily OnClientClick the confirm dialog is not shown.</p>

<p>getTag (method in the code behind) is used for localization to get the text depending on the language. My intention is to show that message in the JavaScript dialog, but I'm getting:</p>

<pre><code>&lt;a href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$rptFamily$ctl01$btnDeleteFamily','')" class="fRight ui-icon ui-icon-trash" id="ctl00_ContentPlaceHolder1_rptFamily_ctl01_btnDeleteFamily" onclick='return confirm("&lt;%= getTag("deletefamilymemberdialog") %&gt;");'/&gt;
</code></pre>

<p>So it's not processing getTag in the server side otherwise I would be getting </p>

<pre><code>onclick='return confirm("Are you sure that you want to delete this entry?");'
</code></pre>

<p>Thanks</p>
