I am trying to implement a shopping cart (c#). How to add items inthe cart when the user is not logged in. After adding, the samecatalog page should be displayed.
could u be a little more specific about your problem...Or do u have to start yet and asking for design tips?Use a dataTable to store data of shopping cart in, so u can project it to a datagrid...u can u a redirection between catalog page and cart page...In catalog page u{ add data to dataTable redirect to cart page bind dataTable to dataGrid}
i am using datalist to display products from my ms access table.when i click addtocart button.. i want to perform add to cart as afunction in the same page.. so can u tell how to implement thefunction.
You could use eiter Session or Cookie. Or you could temporarily stor intodatabase related to Session ID. I think, most of the shopping carts are madewith cookies.
Look at Petshop application available from MS ... it uses a hash table whichis then stored in Session.