Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected void Page_Load(object sender, EventArgs e)
- {
- int productId;
- if (int.TryParse(Request.QueryString["ProductID"], out productId))
- {
- using (ShoppingCartActions usersShoppingCart = new ShoppingCartActions())
- {
- usersShoppingCart.AddToCart(productId);
- }
- }
- else
- {
- ...
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement