title: ASP.NET passing gridview cell value to javascript
body: <p>I have a gridview which contains the details of a number of products. I'm trying to use simplecart (<a href="http://simplecartjs.com/" rel="nofollow">http://simplecartjs.com/</a>) to add shopping cart functionality to my page, and am stuck on one thing. In order to add an item to the cart you have to use the following link, which I added to a column in the gridview:</p>
  
  <pre><code>&lt;a href="javascript:;" onclick="simpleCart.add( 'name=Name' , 'price=123' , 'quantity=1' );"&gt;Add To Cart&lt;/a&gt;
  </code></pre>
  
  <p>I want to pass the values in the ProductName column and ProductPrice column to name and price above for each row, but have no idea how to go about it. I am completely new to html/asp etc. so please forgive me if it is a simple question.</p>