Calling javascript and C# on button/link click
<p>I currently have a Gridview with a itemTemplate which acts as a link which calls a javascript function:</p>

<pre><code> &lt;ItemTemplate&gt;
            &lt;a href="javascript:;" onclick="simpleCart.add( 'name=&lt;%# Eval("Name") %&gt;' , 'price=&lt;%# Eval("Price") %&gt;' , 'quantity=1' );"&gt;Add To Cart&lt;/a&gt;
            &lt;/ItemTemplate&gt;
</code></pre>

<p>I need to add some functionality which I can only do in C#, so I was thinking of replacing the link with a button and when the button is clicked it calls both the C# function and the javascript function (they don't need to interact/share any data). Is this even possible?</p>
