title: Using a Resource File on buttons OnClientClick
body: <p>I would like to use a resource file to display the dialog box which is displayed on client click, i have tried the below however I am getting the result in the screen shot:</p>
  
  <pre><code>               &lt;asp:Button ID="editview" runat="server" Text="&lt;%$ Resources:btnEditViewText%&gt;"  CssClass="buttonlink"                         
                 OnClientClick="return confirm('&lt;%$ Resources:btnEditViewText%&gt;');"
                 CommandName="editview" 
                 CommandArgument='&lt;%# DataBinder.Eval(Container.DataItem, "Id")%&gt;'/&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/O6Ekq.png" alt="enter image description here"></p>
  
  <p>I have seen a few people suggest setting this in the code behind however this control is wrapped in a repeater and I can only get a handle on it once the <code>ItemCommand</code> event is triggered which requires the confirmation dialogue to have been confirmed. </p>
  
  <p>This feels like a bit of a catch 22 and im out of ideas, any suggestions guys?</p>