Advertisement
Guest User

Untitled

a guest
Oct 17th, 2014
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.30 KB | None | 0 0
  1. protected void Page_Load(object sender, EventArgs e)
  2. {
  3.     int productId;
  4.     if (int.TryParse(Request.QueryString["ProductID"], out productId))
  5.     {
  6.         using (ShoppingCartActions usersShoppingCart = new ShoppingCartActions())
  7.         {
  8.             usersShoppingCart.AddToCart(productId);
  9.         }
  10.     }
  11.     else
  12.     {
  13.         ...
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement