I'm working on a shopping cart application in Visual Web Dev and i have the pages and buttons that i need. However i don't know how to transfer information from the "items" page to the "Cart Page" Here is the code for the buttons:
<input type="button" value="Add To Cart" onclick="JavaScript:alert('You have added this item to your cart')"
</FORM>
So when i have clicked the button on the "Items" page i would like it to add a string of text to the "Cart" page.
RhettLAN
0 Points
1 Post
Basic Shopping cart
Jun 06, 2012 08:27 PM|LINK
I'm working on a shopping cart application in Visual Web Dev and i have the pages and buttons that i need. However i don't know how to transfer information from the "items" page to the "Cart Page" Here is the code for the buttons:
<input type="button" value="Add To Cart" onclick="JavaScript:alert('You have added this item to your cart')" </FORM>So when i have clicked the button on the "Items" page i would like it to add a string of text to the "Cart" page.
Thank you!
Segundo
Star
10892 Points
1567 Posts
Re: Basic Shopping cart
Jun 07, 2012 12:16 AM|LINK
Hi,
You can save the values of the items in a Session variable...
I ellaborate a post about this topic some time ago
http://www.neuronasoft.net/2010/10/aspnet-carrito-de-compras-ii.html
Please use the 'Translate this page' option of the right side of the page.
Any doubt, post your comment.
Blog: http://www.neuronasoft.net