attempt to change type="button" to hyperlink
<p>the following code works for my button, which displays an image when clicked:</p>

<pre><code>&lt;input type="button" onclick='javascript:showImg("&lt;%# FieldValue %&gt;")' /&gt;
</code></pre>

<p>I want to change this to a hyperlink 'display' but the following code doesnt work.</p>

<pre><code>&lt;asp:HyperLink ID="displayImg" runat="server" NavigateUrl='javascript:showImg("&lt;%# FieldValue %&gt;")'&gt;Preview&lt;/asp:HyperLink&gt;
</code></pre>

<p>it throws the error:
JavaScript runtime error: Invalid argument.</p>

<p>any help?</p>
