コード例 #1
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        int maHoa = Convert.ToInt16((((ImageButton)sender).CommandArgument));

        GioHang.AddItem(maHoa);
        Response.Redirect(Request.RawUrl); //Request.RawUrl lấy nguyên URL trên thanh Address
    }