Shopping cart Asp.net
<p>i have a aspx page and inside i have called a .ascx page which is the shopping cart , on the aspx page i have a lot of links to the books and we can add the books to the shopping cart. On clicking the add button i store the bookid,name,price in a cookie and on the ascx page i get the copy and paste the value in the shoping cart using session variable everything is working fine..The code is something like this..on clicking the add btn i call this javascript funtion</p>

<pre><code>       function addCookies(typeShopping,id,name,price) {

       document.cookie = typeShopping + "=" + id + "," + name + "," + price;
       }
</code></pre>

<p>But after this i have to do post back so the ascx page loads and adds this info to the shopping cart. so on the btn which call this function is like this..</p>

<pre><code>      &lt;a onclick="addCookies('ShoppingCart',1, 'A summary of the Creed....' ,25);"href=".../ShowBooks.aspx?CategoryName=Qur'an&amp;Mushaf&amp;CatID=1" &lt;/a&gt;
</code></pre>

<p>but this as you see cause the page to post back and although the item adds to the shopping cart i move to the top , how can i do that i just click and the item add and the page dont post back and i stay on the same book.
Thank you</p>
