How to call cs function on click of hyperlink
<p>In my cs file inside the gridview's rowbound event, I have created one hyperlink.</p>

<p><code>Hyperlink hy = new Hyperlink()</code> </p>

<p>If particular condition is true,I have added hyperlink to one column in grid, 
like</p>

<p><code>e.Row.cell[2].Controls.add(hy)</code></p>

<p>It is working fine. I want to call cs file function from <code>onclick</code> event of hyperlink not from javascript.</p>

<pre><code>hy.Attributes.Add("onclick","return display()")
</code></pre>

<p>But this is not working.</p>
