コード例 #1
0
 protected void AddToCart(object sender, EventArgs e)
 {
     CartItem item = new CartItem(Convert.ToInt32(CoinId.Value), Name.Value, double.Parse(Price.Value), Picture.Value, 1);
     item.add();
     Response.Redirect("~/Shopping/ShoppingCartPage.aspx");
 }