Listview DeleteButton onclick broken?
<p>I don't know if I'm just being stupid but I can't get bloody Javascript in my asp buttons onclick event :(</p>

<pre><code>  &lt;asp:Button ID="DeleteButton" runat="server" CommandName="Delete" Text="Delete" onclick="Javascript:returnConf();" /&gt;
</code></pre>

<p>I've tried variations including things like:</p>

<pre><code> &lt;asp:Button ID="DeleteButton" runat="server" CommandName="Delete" Text="Delete" onclick="&lt;%= GetMyStupidCode() %&gt;" /&gt;
</code></pre>

<p>but the compiler keeps picking it up as code it should interpret or something and gives me errors such as:</p>

<pre><code>Identifier expected

Invalid expression term )

Missing )
</code></pre>

<p>I'm lost, how do I do it?</p>

<p>Thanks in advance,</p>
